public class CacheRegistry
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
CacheRegistry.Factory |
Modifier and Type | Method and Description |
---|---|
void |
forEach(java.util.function.Consumer<com.github.benmanes.caffeine.cache.Cache<?,?>> action) |
static CacheRegistry |
get() |
<K,V> com.github.benmanes.caffeine.cache.Cache<K,V> |
get(java.lang.Class<?> idKlass) |
<K,V> com.github.benmanes.caffeine.cache.Cache<K,V> |
get(java.lang.String id) |
java.util.Map<java.lang.String,com.github.benmanes.caffeine.cache.Cache<?,?>> |
getAll() |
void |
invalidateAll() |
void |
register(java.lang.Class<?> idKlass,
com.github.benmanes.caffeine.cache.Cache<?,?> cache) |
void |
register(java.lang.String id,
com.github.benmanes.caffeine.cache.Cache<?,?> cache) |
void |
registerReadOnly(java.lang.Class<?> idKlass,
com.github.benmanes.caffeine.cache.Cache<?,?> cache) |
void |
registerReadOnly(java.lang.String id,
com.github.benmanes.caffeine.cache.Cache<?,?> cache) |
public static CacheRegistry get()
public void register(java.lang.Class<?> idKlass, com.github.benmanes.caffeine.cache.Cache<?,?> cache)
public void register(java.lang.String id, com.github.benmanes.caffeine.cache.Cache<?,?> cache)
public void registerReadOnly(java.lang.Class<?> idKlass, com.github.benmanes.caffeine.cache.Cache<?,?> cache)
public void registerReadOnly(java.lang.String id, com.github.benmanes.caffeine.cache.Cache<?,?> cache)
public <K,V> com.github.benmanes.caffeine.cache.Cache<K,V> get(java.lang.String id)
public <K,V> com.github.benmanes.caffeine.cache.Cache<K,V> get(java.lang.Class<?> idKlass)
public void invalidateAll()
public void forEach(java.util.function.Consumer<com.github.benmanes.caffeine.cache.Cache<?,?>> action)
public java.util.Map<java.lang.String,com.github.benmanes.caffeine.cache.Cache<?,?>> getAll()
Copyright © 2021. All Rights Reserved.