<cacheModel id="product-cache" type ="LRU" readOnly=”true” serialize=”false”> <flushInterval hours="24"/> <flushOnExecute statement="insertProduct"/> <flushOnExecute statement="updateProduct"/> <flushOnExecute statement="deleteProduct"/> <property name=”cache-size” value=”1000” /> </cacheModel>
根据cacheModel中flush元素的内容,上面的例子每24小时刷新一次。一个cacheModel只能有一个flushInteval元素,它可以使用hours,minutes,seconds或milliseconds来设定。另外,当insertProduct,updateProduct或deleteProduct的Mapped Statement执行时,缓存也被刷新。cacheModel可以定义任意多的flushOnExecute元素。某些cache model的实现可能需要另外的属性,如上面的“cache-size”属性。在LRU cache model中,cache-size指定了缓存储存的项数。一旦配置了cache model,您可以指定mapped statement使用的cache model,
相关推荐
在不妨碍app 前台运行的情况下,利用NSCache和NSFile 沙盒文件进行数据的缓存和读取。 功能封装类,暴露出的接口可以存储NSString、NSDictionary、NSArray类型数据
缓存模式 用于 angular-restmod 的 CacheModel
cacheModel xmlResultName Parameter Map 和 Inline Parameter 元素 Inline Parameter Map 基本类型输入参数 Map类型输入参数 Result Map 隐式的Result Map 基本类型的Result(即String,Integer,Boolean) ...
要使用redis后端,请使用或设置模型,并将mixin CacheModel与模型一起使用。 TTL以秒为单位,请参阅 。 # The model JSON { ... "mixins": { "CacheModel": { "backend": "redis", "ttl": 3600 } }, ... } ...
CacheModel-特定于LRU的实现器 存档-实施和处理财务问题 MgrCacheFile-Gerencia o cache de memoria coletando dados do arquivo BigFile-介面使用记忆体快取 可实现的高速缓存:1-高速缓存dos registros que ...
<select id="getByLike" resultClass="Account" parameterClass="Account" cacheModel="categoryCache"> select ACC_ID as id, ACC_FIRST_NAME as firstName, ACC_LAST_NAME as lastName, ACC_EMAIL as ...
cacheModel.....................................................................................................................23 xmlResultName............................................................
使用SQL Cache Dependency 代替 Ibatisnet 提供的CacheModel ASP.NET 2.0中小心Profile命名冲突 使用ASP.NET 2.0 Profile存储用户信息[翻译] Level 200 [ASP.NET 2.0]PageParser.GetCompiledPageInstance中存在一个...