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
  • Constructor Summary

    Constructors
    Constructor
    Description
    PlayCacheStore(com.google.inject.Provider<play.cache.SyncCacheApi> cacheProvider)
     
    PlayCacheStore(play.cache.SyncCacheApi cacheApi)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected String
     
    play.cache.SyncCacheApi
     
    protected Optional<O>
     
    protected void
    internalInit(boolean forceReinit)
     
    protected void
     
    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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • 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)
      Overrides:
      internalInit in class org.pac4j.core.store.AbstractStore<K,O>
    • internalGet

      protected Optional<O> internalGet(K key)
      Specified by:
      internalGet in class org.pac4j.core.store.AbstractStore<K,O>
    • internalSet

      protected void internalSet(K key, O value)
      Specified by:
      internalSet in class org.pac4j.core.store.AbstractStore<K,O>
    • internalRemove

      protected void internalRemove(K key)
      Specified by:
      internalRemove in class org.pac4j.core.store.AbstractStore<K,O>
    • computeKey

      protected String computeKey(Object objKey)
    • getCache

      public play.cache.SyncCacheApi getCache()