ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Darren Davison <dar...@davisononline.org>
Subject caching and obect refs
Date Fri, 11 Jul 2008 06:40:33 GMT
just out of interest, how do people handle the sharing of object refs
from an ibatis cache?

If I cache a reference to a Product instance and a second user obtains
that reference from the cache, the cache will effectively be tainted by
any transient modification that user makes to the instance. i.e. even if
the user would have no rights to persist those changes.

What do others do - not cache anything other than immutable classes? 
manage caches on a per user basis?  Something else altogether?

Cheers,

-- 
Darren Davison
Public Key: 0xE855B3EA

Mime
View raw message