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
Modifier and TypeFieldDescriptionstatic final org.pac4j.core.util.serializer.JavaSerializer
-
Constructor Summary
ConstructorDescriptionPlayCacheStore
(com.google.inject.Provider<play.cache.SyncCacheApi> cacheProvider) PlayCacheStore
(play.cache.SyncCacheApi cacheApi) -
Method Summary
Modifier and TypeMethodDescriptionprotected String
computeKey
(Object objKey) play.cache.SyncCacheApi
getCache()
internalGet
(K key) protected void
internalInit
(boolean forceReinit) protected void
internalRemove
(K key) protected void
internalSet
(K key, O value) Methods inherited from class org.pac4j.core.store.AbstractStore
get, remove, set
Methods inherited from class org.pac4j.core.util.InitializableObject
afterInternalInit, beforeInternalInit, getInitialized, getLastAttempt, getMaxAttempts, getMinTimeIntervalBetweenAttemptsInMilliseconds, getNbAttempts, init, init, isInitialized, reinit, setMaxAttempts, setMinTimeIntervalBetweenAttemptsInMilliseconds, shouldInitialize, toString
-
Field Details
-
JAVA_SERIALIZER
public static final org.pac4j.core.util.serializer.JavaSerializer JAVA_SERIALIZER
-
-
Constructor Details
-
PlayCacheStore
@Inject public PlayCacheStore(play.cache.SyncCacheApi cacheApi) -
PlayCacheStore
public PlayCacheStore(com.google.inject.Provider<play.cache.SyncCacheApi> cacheProvider)
-
-
Method Details
-
internalInit
protected void internalInit(boolean forceReinit) -
internalGet
-
internalSet
-
internalRemove
-
computeKey
-
getCache
public play.cache.SyncCacheApi getCache()
-