set method

On this page

set

Inserts a cache entry into the cache.

def set(self, key, value):
    ...
Parameter Type Description
key str A unique identifier for the cache entry.
value Any The object to insert.

Example

from groupdocs.conversion import ConverterSettings, FileCache

# Create converter settings with a file-based cache
settings = ConverterSettings()
settings.cache = FileCache()

# Store an object in the cache
settings.cache.set("my_document", document)

See Also

On this page