你的位置:首页 > 软件开发 > Java > Ibatis学习总结4

Ibatis学习总结4

发布时间:2016-01-08 00:00:24
SQL Map 缓存 Mapped Statement 结果集通过在查询 statement 中指定 cacheModel 属性,可以缓存 Mapped Statement 中得到的查 询结果。Cache model ...

SQL Map

  • 缓存 Mapped Statement 结果集

    通过在查询 statement 中指定 cacheModel 属性,可以缓存 Mapped Statement 中得到的查 询结果。Cache  model  是在 SQL  Map  

    1 <cacheModel id="product-cache" type ="LRU" readOnly=”true” serialize=”false”>2 <flushInterval hours="24"/>3 <flushOnExecute statement="insertProduct"/>4 <flushOnExecute statement="updateProduct"/>5 <flushOnExecute statement="deleteProduct"/>6 <property name=”cache-size” value=”1000” />7 </cacheModel>

    原标题:Ibatis学习总结4

    关键词:

*特别声明:以上内容来自于网络收集,著作权属原作者所有,如有侵权,请联系我们: admin#shaoqun.com (#换成@)。

可能感兴趣文章

我的浏览记录