Skip to content

add CachingProvider.getCacheManagers() #409

Open
@evernat

Description

@evernat

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions