Class GuavaStore<K,​O>

  • All Implemented Interfaces:
    Store<K,​O>

    public class GuavaStore<K,​O>
    extends AbstractStore<K,​O>
    Store data in a Guava cache. Add the guava dependency to use this store.
    Since:
    2.0.0
    Author:
    Jerome Leleu
    • Constructor Detail

      • GuavaStore

        public GuavaStore()
      • GuavaStore

        public GuavaStore​(int size,
                          int timeout,
                          TimeUnit timeUnit)
    • Method Detail

      • getCache

        public com.google.common.cache.Cache<K,​O> getCache()
      • getSize

        public int getSize()
      • setSize

        public void setSize​(int size)
      • getTimeout

        public int getTimeout()
      • setTimeout

        public void setTimeout​(int timeout)
      • getTimeUnit

        public TimeUnit getTimeUnit()
      • setTimeUnit

        public void setTimeUnit​(TimeUnit timeUnit)