Description
There are methods Caching.getCachingProvider(String)
and Caching.getCachingProviders()
.
There are methods CacheManager.getCache(String)
and CacheManager.getCacheNames()
.
There is also a method CachingProvider.getCacheManager(URI, ClassLoader, Properties)
.
But there is currently no method CachingProvider.getCacheManagers()
.
So there is no way in the JCache api to discover which cacheManagers have been created with URIs.
I suggest to add a method getCacheManagers()
in CachingProvider
to return all known cacheManagers in the cachingProvider whatever URIs were used.
It would be needed to be able to clear all caches of all cacheManagers, after a database synchronisation for example, without having to depend on which URIs were used.
This method CachingProvider.getCacheManagers()
would be useful for many other things.