Class CacheService<K,​V>

    • Field Detail

      • _log

        protected static org.slf4j.Logger _log
      • _cache

        protected com.google.common.cache.Cache<K,​V> _cache
      • useMemcached

        protected boolean useMemcached
      • _disabled

        protected boolean _disabled
    • Constructor Detail

      • CacheService

        public CacheService()
    • Method Detail

      • refreshCache

        protected abstract void refreshCache()
      • hash

        public abstract K hash​(Object... factors)
      • setUseMemcached

        public void setUseMemcached​(boolean useIt)
      • setDisabled

        public void setDisabled​(boolean disable)
      • getCache

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

        public com.google.common.cache.Cache<K,​V> getCache​(int timeout,
                                                                 String type)
      • retrieve

        public V retrieve​(K key)
      • store

        public void store​(K key,
                          V value)
      • store

        public void store​(K key,
                          V value,
                          int timeout)
      • containsKey

        public boolean containsKey​(K key)
      • hashContainsKey

        public boolean hashContainsKey​(Object... factors)
      • hashStore

        public void hashStore​(V value,
                              Object... factors)
      • logStatus

        public void logStatus()