Package org.cyclos.impl.utils.cache
Interface CustomCache
-
public interface CustomCacheA cache used by scripts
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclear()Evicts all keys from cachevoidevict(Serializable... keys)Evicts the given keys from cacheObjectget(Serializable key, Supplier<Object> producer)Returns the currently cached value for the given key.
-
-
-
Method Detail
-
clear
void clear()
Evicts all keys from cache
-
evict
void evict(Serializable... keys)
Evicts the given keys from cache
-
get
Object get(Serializable key, Supplier<Object> producer)
Returns the currently cached value for the given key. If no value is cached, the given producer is used to create one.
-
-