|
|
@ -74,10 +74,10 @@ public class CachesEndpoint {
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Return a {@link CacheDescriptor} for the specified cache.
|
|
|
|
* Return a {@link CacheDescriptor} for the specified cache.
|
|
|
|
* @param cache then name of the cache
|
|
|
|
* @param cache the name of the cache
|
|
|
|
* @param cacheManager the name of the cacheManager (can be {@code null}
|
|
|
|
* @param cacheManager the name of the cacheManager (can be {@code null}
|
|
|
|
* @return the descriptor of the cache or {@code null} if no such cache exists
|
|
|
|
* @return the descriptor of the cache or {@code null} if no such cache exists
|
|
|
|
* @throws NonUniqueCacheException if more than one cache with that name exist and no
|
|
|
|
* @throws NonUniqueCacheException if more than one cache with that name exists and no
|
|
|
|
* {@code cacheManager} was provided to identify a unique candidate
|
|
|
|
* {@code cacheManager} was provided to identify a unique candidate
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
@ReadOperation
|
|
|
|
@ReadOperation
|
|
|
@ -96,11 +96,12 @@ public class CachesEndpoint {
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Clear the specific {@link Cache}.
|
|
|
|
* Clear the specific {@link Cache}.
|
|
|
|
* @param cache then name of the cache
|
|
|
|
* @param cache the name of the cache
|
|
|
|
* @param cacheManager the name of the cacheManager (can be {@code null} to match all)
|
|
|
|
* @param cacheManager the name of the cacheManager (can be {@code null} to match all)
|
|
|
|
* @return {@code true} if the cache was cleared or {@code false} if no such cache
|
|
|
|
* @return {@code true} if the cache was cleared or {@code false} if no such cache
|
|
|
|
* exists
|
|
|
|
* exists
|
|
|
|
* @throws NonUniqueCacheException if more than one cache with that name exist and no
|
|
|
|
* @throws NonUniqueCacheException if more than one cache with that name exists and no
|
|
|
|
|
|
|
|
* {@code cacheManager} was provided to identify a unique candidate
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
@DeleteOperation
|
|
|
|
@DeleteOperation
|
|
|
|
public boolean clearCache(@Selector String cache, @Nullable String cacheManager) {
|
|
|
|
public boolean clearCache(@Selector String cache, @Nullable String cacheManager) {
|
|
|
|