On Jan 8, 2009, at 8:52 PM, Les Hazlewood wrote:
Now that SoftHashMapCache is available and production quality in that itwon't introduce memory leaks (making it a better option than aHashtableCache), we can remove the hard dependency on Ehcache in JSecuritycore. So, now the question is:1. Do we enable a MemoryCacheManager (which would use a SoftHashMapCache)automatically by default? or2. Do we disable caching entirely, expecting the end-user to explicitlyconfigure a CacheManager to enable it? If we think #1 is the preferred, and an end-user does NOT want cachingenabled at all, we could easily provide a NoOpCacheManager that they wouldconfigure explicitly. This dummy implementation would satisfy the CacheManager calls, it would just do nothing.If we think #2 is the preferred, it is very easy for the end-user to enableit. Something like this in the .ini config: cacheManager = org.jsecurity.cache.MemoryCacheManager securityManager.cacheManager = $cacheManager What does everyone think?
smime.p7s
Description: S/MIME cryptographic signature
