Question: ehcache how to clear cache?
Answer: getInstance(); Ehcache cache = manager. getCache(cacheName); cache. removeAll(); Your approach works, but it will clear all caches' objects.