Class LRUCacheConfiguration

    • Constructor Detail

      • LRUCacheConfiguration

        public LRUCacheConfiguration()
        Creates new LRUCacheConfiguration instance with empty (null) configurationId, default size of 100 and time to live 0.
      • LRUCacheConfiguration

        public LRUCacheConfiguration​(String configurationId)
        Creates new LRUCacheConfiguration instance with given configurationId, default max size of 100 and time to live 0.
        Parameters:
        configurationId - configuration identifier
      • LRUCacheConfiguration

        public LRUCacheConfiguration​(String configurationId,
                                     int maxSize)
        Creates new LRUCacheConfiguration instance with given configurationId and max size, and default time to live 0.
        Parameters:
        configurationId - configuration identifier
        maxSize - maximum cache capacity
      • LRUCacheConfiguration

        public LRUCacheConfiguration​(String configurationId,
                                     int maxSize,
                                     int maxIdle)
        Creates new LRUCacheConfiguration instance with given configurationId, max size and time to live.
        Parameters:
        configurationId - configuration identifier
        maxSize - maximum cache capacity
        maxIdle - for how long cache entry will be valid (in seconds) since the last time it was used