Package io.micronaut.cache.management
Class CachesEndpoint
java.lang.Object
io.micronaut.cache.management.CachesEndpoint
Exposes an 
Endpoint to manage caches.- Since:
 - 1.1.0
 - Author:
 - Marcel Overdijk, graemerocher
 
- 
Field Summary
Fields - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionReturns the cache as aMono.Returns the caches as aMono.reactor.core.publisher.Mono<Boolean>invalidateCache(@NotBlank String name) Invalidates the cache.reactor.core.publisher.Mono<Boolean>invalidateCacheKey(@NotBlank String name, @NotBlank String key) Invalidates a key within the provided cache.reactor.core.publisher.Mono<Boolean>Invalidates all the caches. 
- 
Field Details
- 
NAME
Endpoint name.- See Also:
 
 
 - 
 - 
Constructor Details
- 
CachesEndpoint
- Parameters:
 cacheManager- TheCacheManager
 
 - 
 - 
Method Details
- 
getCaches
Returns the caches as aMono.- Returns:
 - The caches as a 
Mono 
 - 
getCache
@Read public reactor.core.publisher.Mono<Map<String,Object>> getCache(@NotBlank @Selector @NotBlank String name) Returns the cache as aMono.- Parameters:
 name- The name of the cache to retrieve- Returns:
 - The cache as a 
Mono 
 - 
invalidateCaches
Invalidates all the caches.- Returns:
 - A maybe that emits a boolean.
 
 - 
invalidateCache
@Delete public reactor.core.publisher.Mono<Boolean> invalidateCache(@NotBlank @Selector @NotBlank String name) Invalidates the cache.- Parameters:
 name- The name of the cache to invalidate- Returns:
 - A maybe that emits a boolean if the operation was successful
 
 - 
invalidateCacheKey
@Delete public reactor.core.publisher.Mono<Boolean> invalidateCacheKey(@NotBlank @Selector @NotBlank String name, @NotBlank @Selector @NotBlank String key) Invalidates a key within the provided cache.- Parameters:
 name- The name of the cachekey- the key within the cache to invalidate- Returns:
 - A maybe that emits a boolean if the operation was successful
 
 
 -