Interface CacheableManager<T,​K>

    • Method Detail

      • setCache

        void setCache​(T cache)
        Sets the cache.
        Parameters:
        cache - New cache to use.
      • flushCache

        void flushCache()
        Flushes all entries from the cache.
      • flushCache

        void flushCache​(K key)
        Flushes one entry from the cache.
        Parameters:
        key - Entry's key.
      • containsKey

        boolean containsKey​(K key)
        Checks if an entry exists in the cache.
        Parameters:
        key - Entry's key
        Returns:
        true if there is an entry, false otherwise.
      • getCachedKeys

        Set<K> getCachedKeys()
        Returns a set of keys stored in the cache.
        Returns:
        keys stored in the cache.