how do clear all the internal stored cache?😞😞😞
Java does not have any direct method which can clear all the internally stored cache.
We have a solution which we can use to achieve this,😀😄✌👌
CacheManager class has a method name getCacheNames() returns the name of the cache, and after that we use clear() to clear that cache.
we use this method to achieve our goal to clear all the cache.