Togglz Cache - EhCache as Cache-Provider

53 views
Skip to first unread message

Liviu Coman

unread,
Dec 6, 2016, 2:07:01 AM12/6/16
to togglz-dev
Hi,

Is Togglz using Spring-Cache for implementing cache of Feature states?

See:

I would like to have a EhCache as CacheProvider for Togglz.

Cheers,
Liviu

Christian Kaltepoth

unread,
Dec 9, 2016, 4:44:57 AM12/9/16
to toggl...@googlegroups.com
No, Togglz doesn't support Spring Cache at the moment. There is just a cache implementation based on a simple JDK map which performs very well. See CachingStateRepository class for details.

But you can also create a caching state repository yourself. This is actually very easy. Just have a look at the CachingStateRepository source. It's straight forward.


Reply all
Reply to author
Forward
0 new messages