Interface CacheableService

    • Method Detail

      • isCacheEnable

        boolean isCacheEnable()
        Gets the current cache status.
        Returns:
        true if enable, otherwise false
      • getCacheSize

        int getCacheSize()
        Gets the number of item currently in the cache.
        Returns:
        the number of item currently in the cache.
      • resetCache

        void resetCache()
        Reset the cache.
      • enableCache

        void enableCache​(boolean bEnable)
        Enable the cache
        Parameters:
        bEnable - true to enable, false to disable
      • getKeys

        java.util.List<java.lang.String> getKeys()
        Gets all keys in the cache
        Returns:
        The List
      • getMaxElements

        int getMaxElements()
        Returns maximum elements accepted into the cache
        Returns:
        The max elements
      • getTimeToLive

        long getTimeToLive()
        Returns the time to live for objects in the cache
        Returns:
        The time to live in seconds
      • getMemorySize

        long getMemorySize()
        Return the memory size
        Returns:
        the memory size
      • getInfos

        java.lang.String getInfos()
        Returns cache infos
        Returns:
        cache infos