Skip to content

Commit 9a9ee5e

Browse files
committed
Fixes issue #100. Docs for custom cache and decorators [ci skip]
1 parent 93197bd commit 9a9ee5e

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

src/site/es/xdoc/sqlmap-xml.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1644,6 +1644,11 @@ SELECT * FROM POST WHERE BLOG_ID = #{id}]]></source>
16441644
</cache>]]></source>
16451645

16461646
<p>Puedes utilizar propiedades JavaBean de cualquier tipo simple y MyBatis hará la conversión.</p>
1647+
1648+
<p><span class="label important">NOTE</span>
1649+
Los parametros de configuración de la cache (eviction, read write..etc.) explicados anteriormente no aplican cuando se usa
1650+
una caché personalizada.
1651+
</p>
16471652

16481653
<p>Es importante recordar que la configuración de la caches y la instancia de caché está asociadas al namespace del fichero SQL Map. Y por tanto, a todas las sentencias del mismo namespace dado que la cache está asociada a él. Los statements pueden modificar cómo interactúan con la caché, o excluirse a sí mismos completamente utilizando dos atributos simples. Por defecto los statements están configurados así:
16491654
</p>

src/site/xdoc/sqlmap-xml.xml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2040,9 +2040,6 @@ SELECT * FROM POST WHERE BLOG_ID = #{id}]]></source>
20402040
ReadWriteLock getReadWriteLock();
20412041
}]]></source>
20422042

2043-
<p>Follows below
2044-
</p>
2045-
20462043
<p>
20472044
To configure your cache, simply add public JavaBeans properties to your Cache implementation, and
20482045
pass properties via the cache Element, for example, the following would call a method called
@@ -2055,6 +2052,11 @@ SELECT * FROM POST WHERE BLOG_ID = #{id}]]></source>
20552052

20562053
<p>You can use JavaBeans properties of all simple types, MyBatis will do the conversion.</p>
20572054

2055+
<p><span class="label important">NOTE</span>
2056+
Settings of cache (like eviction strategy, read write..etc.) in section above are not applied
2057+
when using Custom Cache.
2058+
</p>
2059+
20582060
<p>
20592061
It's important to remember that a cache configuration and the cache instance are bound to the
20602062
namespace of the SQL Map file. Thus, all statements in the same namespace as the cache are bound by

0 commit comments

Comments
 (0)