Interface HasCache

    • Method Detail

      • hasCache

        boolean hasCache()
        Returns false if this unit does not have a cache. The reverse is not always true:
        If this method returns false, a subsequent call to getCache() will always create a new cache.
        If this method returns true, a subsequent call to getCache() may or may not create a new cache.
      • getCache

        Cache getCache()
        Returns the value of cache. Creates it if necessary.
        Returns:
        Returns cache.
      • setCache

        void setCache​(Cache cache)
        Sets the value of cache.
        Parameters:
        cache - The value for cache.
      • clearCache

        void clearCache()
        Releases the memory for the cache.