Package org.pac4j.play.store
Class PlayCacheStore<K,O>
- java.lang.Object
-
- org.pac4j.core.util.InitializableObject
-
- org.pac4j.core.store.AbstractStore<K,O>
-
- org.pac4j.play.store.PlayCacheStore<K,O>
-
- All Implemented Interfaces:
org.pac4j.core.store.Store<K,O>
- Direct Known Subclasses:
PlayEhCacheStore
public class PlayCacheStore<K,O> extends org.pac4j.core.store.AbstractStore<K,O>
Store using the Play Cache.- Since:
- 3.0.0
- Author:
- Jerome Leleu
-
-
Field Summary
Fields Modifier and Type Field Description static org.pac4j.core.util.serializer.JavaSerializer
JAVA_SERIALIZER
-
Constructor Summary
Constructors Constructor Description PlayCacheStore(com.google.inject.Provider<play.cache.SyncCacheApi> cacheProvider)
PlayCacheStore(play.cache.SyncCacheApi cacheApi)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String
computeKey(Object objKey)
play.cache.SyncCacheApi
getCache()
int
getTimeout()
protected Optional<O>
internalGet(K key)
protected void
internalInit()
protected void
internalRemove(K key)
protected void
internalSet(K key, O value)
void
setTimeout(int timeout)
String
toString()
-
-
-
Method Detail
-
internalInit
protected void internalInit()
-
internalRemove
protected void internalRemove(K key)
-
getCache
public play.cache.SyncCacheApi getCache()
-
getTimeout
public int getTimeout()
-
setTimeout
public void setTimeout(int timeout)
-
-