Class GCache

  • All Implemented Interfaces:
    Map, javax.cache.Cache

    public class GCache
    extends Object
    implements javax.cache.Cache
    JCache Cache implementation using Memcache.
    • Constructor Detail

      • GCache

        public GCache​(Map<?,​?> properties)
        Creates a JCache implementation over the provided service with the given properties.
        Parameters:
        properties - Properties for this cache.
    • Method Detail

      • addListener

        public void addListener​(javax.cache.CacheListener cacheListener)
        Specified by:
        addListener in interface javax.cache.Cache
      • evict

        public void evict()
        Specified by:
        evict in interface javax.cache.Cache
      • getAll

        public Map getAll​(Collection collection)
        Specified by:
        getAll in interface javax.cache.Cache
      • getCacheEntry

        public javax.cache.CacheEntry getCacheEntry​(Object o)
        Specified by:
        getCacheEntry in interface javax.cache.Cache
      • getCacheStatistics

        public javax.cache.CacheStatistics getCacheStatistics()
        Specified by:
        getCacheStatistics in interface javax.cache.Cache
      • load

        public void load​(Object o)
        Not supported.
        Specified by:
        load in interface javax.cache.Cache
      • loadAll

        public void loadAll​(Collection collection)
        Not supported.
        Specified by:
        loadAll in interface javax.cache.Cache
      • peek

        public Object peek​(Object o)
        Specified by:
        peek in interface javax.cache.Cache
      • removeListener

        public void removeListener​(javax.cache.CacheListener cacheListener)
        Specified by:
        removeListener in interface javax.cache.Cache
      • size

        public int size()
        Specified by:
        size in interface Map
      • isEmpty

        public boolean isEmpty()
        Specified by:
        isEmpty in interface Map
      • containsKey

        public boolean containsKey​(Object key)
        Specified by:
        containsKey in interface Map
      • containsValue

        public boolean containsValue​(Object value)
        Not supported.
        Specified by:
        containsValue in interface Map
      • putAll

        public void putAll​(Map m)
        Specified by:
        putAll in interface Map
      • clear

        public void clear()
        Specified by:
        clear in interface Map
      • keySet

        public Set keySet()
        Not supported.
        Specified by:
        keySet in interface Map
      • entrySet

        public Set entrySet()
        Not supported.
        Specified by:
        entrySet in interface Map