Class APIMCLICache<K,​V>

  • All Implemented Interfaces:
    Iterable<org.ehcache.Cache.Entry<K,​V>>, org.ehcache.Cache<K,​V>

    public class APIMCLICache<K,​V>
    extends Object
    implements org.ehcache.Cache<K,​V>
    • Constructor Detail

      • APIMCLICache

        public APIMCLICache​(org.ehcache.Cache<K,​V> cache,
                            String prefix)
    • Method Detail

      • containsKey

        public boolean containsKey​(K key)
        Specified by:
        containsKey in interface org.ehcache.Cache<K,​V>
      • clear

        public void clear()
        Specified by:
        clear in interface org.ehcache.Cache<K,​V>
      • get

        public V get​(K key)
              throws org.ehcache.spi.loaderwriter.CacheLoadingException
        Specified by:
        get in interface org.ehcache.Cache<K,​V>
        Throws:
        org.ehcache.spi.loaderwriter.CacheLoadingException
      • getAll

        public Map<K,​V> getAll​(Set<? extends K> arg0)
                              throws org.ehcache.spi.loaderwriter.BulkCacheLoadingException
        Specified by:
        getAll in interface org.ehcache.Cache<K,​V>
        Throws:
        org.ehcache.spi.loaderwriter.BulkCacheLoadingException
      • getRuntimeConfiguration

        public org.ehcache.config.CacheRuntimeConfiguration<K,​V> getRuntimeConfiguration()
        Specified by:
        getRuntimeConfiguration in interface org.ehcache.Cache<K,​V>
      • iterator

        public Iterator<org.ehcache.Cache.Entry<K,​V>> iterator()
        Specified by:
        iterator in interface org.ehcache.Cache<K,​V>
        Specified by:
        iterator in interface Iterable<K>
      • put

        public void put​(K key,
                        V value)
                 throws org.ehcache.spi.loaderwriter.CacheWritingException
        Specified by:
        put in interface org.ehcache.Cache<K,​V>
        Throws:
        org.ehcache.spi.loaderwriter.CacheWritingException
      • putAll

        public void putAll​(Map<? extends K,​? extends V> arg0)
                    throws org.ehcache.spi.loaderwriter.BulkCacheWritingException
        Specified by:
        putAll in interface org.ehcache.Cache<K,​V>
        Throws:
        org.ehcache.spi.loaderwriter.BulkCacheWritingException
      • putIfAbsent

        public V putIfAbsent​(K key,
                             V value)
                      throws org.ehcache.spi.loaderwriter.CacheLoadingException,
                             org.ehcache.spi.loaderwriter.CacheWritingException
        Specified by:
        putIfAbsent in interface org.ehcache.Cache<K,​V>
        Throws:
        org.ehcache.spi.loaderwriter.CacheLoadingException
        org.ehcache.spi.loaderwriter.CacheWritingException
      • remove

        public void remove​(K key)
                    throws org.ehcache.spi.loaderwriter.CacheWritingException
        Specified by:
        remove in interface org.ehcache.Cache<K,​V>
        Throws:
        org.ehcache.spi.loaderwriter.CacheWritingException
      • remove

        public boolean remove​(K key,
                              V value)
                       throws org.ehcache.spi.loaderwriter.CacheWritingException
        Specified by:
        remove in interface org.ehcache.Cache<K,​V>
        Throws:
        org.ehcache.spi.loaderwriter.CacheWritingException
      • removeAll

        public void removeAll​(Set<? extends K> arg0)
                       throws org.ehcache.spi.loaderwriter.BulkCacheWritingException
        Specified by:
        removeAll in interface org.ehcache.Cache<K,​V>
        Throws:
        org.ehcache.spi.loaderwriter.BulkCacheWritingException
      • replace

        public V replace​(K key,
                         V value)
                  throws org.ehcache.spi.loaderwriter.CacheLoadingException,
                         org.ehcache.spi.loaderwriter.CacheWritingException
        Specified by:
        replace in interface org.ehcache.Cache<K,​V>
        Throws:
        org.ehcache.spi.loaderwriter.CacheLoadingException
        org.ehcache.spi.loaderwriter.CacheWritingException
      • replace

        public boolean replace​(K key,
                               V value1,
                               V value2)
                        throws org.ehcache.spi.loaderwriter.CacheLoadingException,
                               org.ehcache.spi.loaderwriter.CacheWritingException
        Specified by:
        replace in interface org.ehcache.Cache<K,​V>
        Throws:
        org.ehcache.spi.loaderwriter.CacheLoadingException
        org.ehcache.spi.loaderwriter.CacheWritingException