Package org.apereo.cas.util.cache
Class MappableDistributedCacheManager<K extends java.io.Serializable,V extends DistributedCacheObject>
- java.lang.Object
-
- org.apereo.cas.util.cache.BaseDistributedCacheManager<K,V>
-
- org.apereo.cas.util.cache.MappableDistributedCacheManager<K,V>
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable,org.apereo.cas.util.cache.DistributedCacheManager<K,V,PublisherIdentifier>
public class MappableDistributedCacheManager<K extends java.io.Serializable,V extends DistributedCacheObject> extends BaseDistributedCacheManager<K,V>
This isMappableDistributedCacheManager.- Since:
- 6.3.0
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.Map<java.lang.String,V>mapInstance(Distributed) map instances that holds the data.
-
Constructor Summary
Constructors Constructor Description MappableDistributedCacheManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.StringbuildKey(K key)Build key.voidclear()booleancontains(K key)java.util.Collection<V>findAll(java.util.function.Predicate<V> filter)Vget(K key)java.util.Collection<V>getAll()org.apereo.cas.util.cache.DistributedCacheManager<K,V,PublisherIdentifier>remove(K key, V item, boolean publish)org.apereo.cas.util.cache.DistributedCacheManager<K,V,PublisherIdentifier>set(K key, V item, boolean publish)org.apereo.cas.util.cache.DistributedCacheManager<K,V,PublisherIdentifier>update(K key, V item, boolean publish)-
Methods inherited from class org.apereo.cas.util.cache.BaseDistributedCacheManager
close
-
-
-
-
Field Detail
-
mapInstance
protected final java.util.Map<java.lang.String,V extends DistributedCacheObject> mapInstance
(Distributed) map instances that holds the data.
-
-
Method Detail
-
getAll
public java.util.Collection<V> getAll()
-
set
@CanIgnoreReturnValue public org.apereo.cas.util.cache.DistributedCacheManager<K,V,PublisherIdentifier> set(K key, V item, boolean publish)
-
clear
public void clear()
-
contains
public boolean contains(K key)
-
update
@CanIgnoreReturnValue public org.apereo.cas.util.cache.DistributedCacheManager<K,V,PublisherIdentifier> update(K key, V item, boolean publish)
-
remove
@CanIgnoreReturnValue public org.apereo.cas.util.cache.DistributedCacheManager<K,V,PublisherIdentifier> remove(K key, V item, boolean publish)
-
buildKey
protected java.lang.String buildKey(K key)
Build key.- Parameters:
key- the key- Returns:
- the string
-
-