Skip to content

Month: June 2018

How to programmatically add and remove elements from Ehcache

Pre-requisites This guide assumes that you have already configured Ehcache, and is specifically concerned with programmatic addition and removal of elements. Adding an element to a cache @Autowired private CacheManager cacheManager; […] public Ehcache getCache(String name) { return cacheManager.getCache(name); } In the above example we…

Continue reading How to programmatically add and remove elements from Ehcache