开发者

iBATIS - Request and Session Scope

开发者 https://www.devze.com 2023-02-22 19:10 出处:网络
I came across the following comment from Larry Meadors here With readOnly=\"true\" and serialize=\"false\", you are only going

I came across the following comment from 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

I wanted to know what does request and session scope mean with resp开发者_运维问答ect to iBATIS? I understand these terms with respect to a Web Application but not from iBATIS cache point of view.

FWIW, I am using iBATIS with Spring support (using the wrapper classes that Spring provides) in a web application.

Thanks in advance!


It appears that the author was discussing the use of iBatis in the context of a web application.

0

精彩评论

暂无评论...
验证码 换一张
取 消