Hi all,

Using my own realm (subclass of AuthenticatingRealm) I have been able to
get caching working in terms of calls to doGetAuthorizationInfo and
doGetAuthenticationInfo.  However I cannot seem to get caching working for
the session manager (The number of calls to SessionDAO do not get any less
after I have 'added' in caching).

Here is my simplified ini file:

myRealm = MyAuthenticatingRealm

myRealm.authenticationCachingEnabled = true


sessionDAO = MySessionDAO

cacheManager = org.apache.shiro.cache.MemoryConstrainedCacheManager

securityManager.cacheManager = $cacheManager

securityManager.sessionManager.cacheManager = $cacheManager //tried with
and without this

securityManager.sessionManager.sessionDAO = $sessionDAO

Any pointers would be much appreciated.  I suppose I could implement
caching in the session dao itself but I thought this was provided by the
out of the box session manager (with a cache plugged in).

Cheers,

Stuart

Reply via email to