Yes, I saw.. to many customizations needed..

At the end, since my need is a "memory based" cache, I ended with this: 

[code]final CacheManager cacheManager = CacheManager.create();
final Cache memoryOnlyCache = new Cache("ceced", 5000, false, false, 5, 2);
cacheManager.addCache(memoryOnlyCache);
CacheWrapper cacheWrapper = new EhcacheWrapper<String, Object>("ceced", 
cacheManager);[/code]

..where CacheWrapper / EhcacheWrapper are "provided" by Ehcache itself (see 
here: http://ehcache.org/documentation/recipes/wrapper)

Simple as beautiful!
M.

(thanks Richard..)

-- 
Context is everything: 
http://forum.magnolia-cms.com/forum/thread.html?threadId=28b6af61-998b-4869-962a-5353824a3cda


----------------------------------------------------------------
For list details, see http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

Reply via email to