Interface CacheService

    • Method Detail

      • getCache

        Cache getCache​(String name)
        Gets the cache with the given name.
        Parameters:
        name - the cache name
        Returns:
        the cache, or null if it does not exist
      • registerCache

        @Deprecated
        void registerCache​(String name,
                           int size,
                           int timeout)
        Deprecated.
        since 9.3, seems unused, use registerCache(String) instead.
        Programmatically registers a cache with the given characteristics.
        Parameters:
        name - the cache name
        size - the maximum number of elements
        timeout - the entry timeout (in minutes)
        Since:
        8.2
      • registerCache

        void registerCache​(String name)
        Programmatically registers a cache with the given name, with the the size and the timeout given by the default cache.
        Parameters:
        name - the cache name
        Since:
        9.3