com.groupdocs.conversion.caching

Class MemoryCache

  • All Implemented Interfaces:
    ICache


    public class MemoryCache
    extends Object
    implements ICache
    Memory caching behaviour. Means that cache is stored in the memory Learn more More about caching and optimizing conversion process performance: Caching conversion results
    • Constructor Detail

      • MemoryCache

        public MemoryCache()
        Creates new instance of MemoryCache class
    • Method Detail

      • set

        public void set(String key,
                        Object value)
        Inserts a cache entry into the cache.
        Specified by:
        set in interface ICache
        Parameters:
        key - A unique identifier for the cache entry.
        value - The object to insert.
      • tryGetValue

        public Object tryGetValue(String key)
        Gets the entry associated with this key if present.
        Specified by:
        tryGetValue in interface ICache
        Parameters:
        key - A key identifying the requested entry.
        Returns:
        The located value or null.
      • getKeys

        public Iterable<String> getKeys(String filter)
        Returns all keys matching filter.
        Specified by:
        getKeys in interface ICache
        Parameters:
        filter - he filter to use.
        Returns:
        Keys matching the filter.