Moving from ehcache2 to ehcache3

188 views
Skip to first unread message

Alain Birchmeier

unread,
Oct 3, 2019, 9:23:21 AM10/3/19
to ehcache-dev
Hi,

Have a question that I hope you help me with.

We have an application that depends on a framework which used ehcache2. In this application we override a cache filter class by implementing our custom cache filtering class which inherits from SimplePageCachingFilter. This class is part of the net.sf.ehcache package, and if I understood correctly this is ehcache2 and ehcache3 is in package org.ehcache, correct me if I'm wrong..
Now the framework we depend on has move to ehcache3 and it seems that some error occurs because of our class. We are not able to instantiate it because we can't find a CacheManager (which is also part of net.sf.ehcache) that would suit our need.

My question is does ehcache3 have an equivalent class to SimplePageCachingFilter ?

Sorry if I'm not really precise, I was just onboard on this project and there is a lot of technologies in it that I don't know yet.

Hope you will be able to answer my question

Best Regards,
Alain Birchmeier

Chris Dennis

unread,
Oct 21, 2019, 8:54:22 PM10/21/19
to ehcac...@googlegroups.com
No, Ehcache 3 doesn’t have an equivalent class… mainly because the BlockingCache concept that the web caching stuff is built upon doesn’t really exist in Ehcache 3. That said I doubt it would be a hard task to port the Ehcache 2.x web-caching classes to work against the javax.cache API (JSR-107). Then you could freely layer this stuff on top of any JSR-107 implementation.

Chris

--
You received this message because you are subscribed to the Google Groups "ehcache-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ehcache-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ehcache-dev/cbfc8854-ac80-4cb8-89fe-26c227fb8336%40googlegroups.com.

Reply all
Reply to author
Forward
0 new messages