Class 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 Detail

      • JAVA_SERIALIZER

        public static final org.pac4j.core.util.serializer.JavaSerializer JAVA_SERIALIZER
    • Constructor Detail

      • PlayCacheStore

        @Inject
        public PlayCacheStore​(play.cache.SyncCacheApi cacheApi)
      • PlayCacheStore

        public PlayCacheStore​(com.google.inject.Provider<play.cache.SyncCacheApi> cacheProvider)
    • Method Detail

      • internalInit

        protected void internalInit()
        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()
      • getTimeout

        public int getTimeout()
      • setTimeout

        public void setTimeout​(int timeout)