我看到了 Larry Meadors 的以下评论 here
With readOnly="true" and serialize="false", you are only going to cache within the current session, and the cache will be mutable. If you want longer cache life, make serialize="true".
Also, you may want to just use the MEMORY cache, and set the reference type to HARD. That will keep everything in memory even after a GC.
Larry
我想知道请求
和 session 范围
对于iBATIS
意味着什么?我理解这些与 Web 应用程序有关的术语,但不是从 iBATIS
缓存的角度来看的。
FWIW,我在 Web 应用程序中使用带有 Spring
支持的 iBATIS
(使用 Spring 提供的包装类)。
提前致谢!
最佳答案
作者似乎正在讨论 iBatis 在 Web 应用程序上下文中的使用。
关于java - iBATIS - 请求和 session 范围,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5571132/