com.groupdocs.viewer.caching

Interface Cache

  • All Known Implementing Classes:
    FileCache


    public interface Cache

    Defines methods required for storing rendered document and document resources сache.

    • Method Detail

      • get

        <T> T get(String key)

        Gets the entry associated with this key if present and null otherwise.

        Parameters:
        key - A key identifying the requested entry.
        Returns:
        Object if the key was found and null otherwise.
      • getKeys

        List<String> getKeys(String filter)

        Returns all keys matching filter.

        Parameters:
        filter - The filter to use.
        Returns:
        Keys matching the filter.
      • set

        void set(String key,
                 Object value)

        Inserts a cache entry into the cache.

        Parameters:
        key - A unique identifier for the cache entry.
        value - The object to insert.