spring-framework / org.springframework.cache.caffeine / CaffeineCacheManager / setCacheNames

setCacheNames

open fun setCacheNames(@Nullable cacheNames: MutableCollection<String>): Unit

Specify the set of cache names for this CacheManager's 'static' mode.

The number of caches and their names will be fixed after a call to this method, with no creation of further cache regions at runtime.

Calling this with a null collection argument resets the mode to 'dynamic', allowing for further creation of caches again.