@Endpoint(id="caches",
defaultEnabled=false)
public class CachesEndpoint
extends Object
Endpoint to manage caches.| Constructor and Description |
|---|
CachesEndpoint(CacheManager<Object> cacheManager) |
| Modifier and Type | Method and Description |
|---|---|
reactor.core.publisher.Mono<Map<String,Object>> |
getCache(@NotBlank String name)
Returns the cache as a
Mono. |
reactor.core.publisher.Mono<Map<String,Object>> |
getCaches()
Returns the caches as a
Mono. |
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> |
invalidateCaches()
Invalidates all the caches.
|
public static final String NAME
public CachesEndpoint(CacheManager<Object> cacheManager)
cacheManager - The CacheManager@Read public reactor.core.publisher.Mono<Map<String,Object>> getCaches()
Mono.Mono@Read public reactor.core.publisher.Mono<Map<String,Object>> getCache(@NotBlank @Selector @NotBlank String name)
Mono.name - The name of the cache to retrieveMono@Delete public reactor.core.publisher.Mono<Boolean> invalidateCaches()
@Delete public reactor.core.publisher.Mono<Boolean> invalidateCache(@NotBlank @Selector @NotBlank String name)
name - The name of the cache to invalidate@Delete public reactor.core.publisher.Mono<Boolean> invalidateCacheKey(@NotBlank @Selector @NotBlank String name, @NotBlank @Selector @NotBlank String key)
name - The name of the cachekey - the key within the cache to invalidate