com.groupdocs.conversion.caching

Class FileCache

  • All Implemented Interfaces:
    ICache


    public final class FileCache
    extends Object
    implements ICache
    File caching behaviour. Means that cache is stored on the file system Learn more More about caching and optimizing conversion process performance: Caching conversion results
    • Constructor Detail

      • FileCache

        public FileCache(String cachePath)
        Creates new instance of FileCache class
        Parameters:
        cachePath - Relative or absolute path where document cache will be stored
    • 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:
        Object if the key was found or else null.
      • getKeys

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