Class EhCacheAdapter

    • Constructor Detail

      • EhCacheAdapter

        public EhCacheAdapter​(String cacheName)
    • Method Detail

      • retrieveObjectFromCache

        public Object retrieveObjectFromCache​(int index)
        Description copied from class: CacheAdapter
        Retrieves the object from cache (if it's there).
        Overrides:
        retrieveObjectFromCache in class CacheAdapter
        Parameters:
        index - the index of the required object
        Returns:
        the object, or null if the object with the given index is not in the cache
      • putObjectIntoCache

        public void putObjectIntoCache​(int index,
                                       Object object)
        Description copied from class: CacheAdapter
        Puts the object in the cache.
        Overrides:
        putObjectIntoCache in class CacheAdapter
        Parameters:
        index - the index of the object
        object - the object that is to be cached