com.groupdocs.annotation.cache

Interface ICache

  • All Known Implementing Classes:
    FileCache


    public interface ICache

    Defines methods required for storing rendered document and document resources cache.

    • Method Summary

      Methods 
      Modifier and Type Method and Description
      com.aspose.ms.System.Collections.Generic.IGenericEnumerable<String> getKeys(String filter)
      Returns all keys matching filter.
      void set(String key, Object value)
      Inserts a cache entry into the cache.
      boolean tryGetValue(String key, Object value)
      Gets the entry associated with this key if present.
    • Method Detail

      • getKeys

        com.aspose.ms.System.Collections.Generic.IGenericEnumerable<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.
      • tryGetValue

        boolean tryGetValue(String key,
                          Object value)

        Gets the entry associated with this key if present.

        Parameters:
        key - A key identifying the requested entry.
        value - The located value or null.
        Returns:
        True if the key was found.