Class Cache<K,​V>

    • Constructor Detail

      • Cache

        public Cache​(String cacheName,
                     String serviceName)
      • Cache

        public Cache​(String cacheName)
    • Method Detail

      • getFromCache

        public V getFromCache​(String key)
                       throws CacheOperationException
        Gets the requested value from the cache
        Parameters:
        key - Key to the value
        Returns:
        The value associated with the key
        Throws:
        CacheOperationException - if issue getting from cache
      • getCacheName

        public String getCacheName()
      • getAllKeys

        public Iterable<K> getAllKeys()
      • contains

        public boolean contains​(String graphId)
      • deleteFromCache

        public void deleteFromCache​(String key)
        Delete the value related to the specified ID from the cache.
        Parameters:
        key - the ID of the key to be deleted
      • getCache

        public ICache<K,​V> getCache()
        Get the cache.
        Returns:
        ICache
      • getSuffixCacheNameWithoutPrefix

        public String getSuffixCacheNameWithoutPrefix​(String prefixCacheServiceName)
      • getCacheNameFrom

        public static String getCacheNameFrom​(String prefixCacheServiceName,
                                              String suffixCacheName)