pynenc.arg_cache.mem_arg_cache

Module Contents

Classes

MemArgCache

Memory-based implementation of argument caching.

API

class pynenc.arg_cache.mem_arg_cache.MemArgCache(app: pynenc.app.Pynenc)[source]

Bases: pynenc.arg_cache.base_arg_cache.BaseArgCache

Memory-based implementation of argument caching.

Stores serialized arguments in local memory using a dictionary. This implementation is suitable for development and testing, but not recommended for production as cache is not shared between processes.

Initialization

Initialize with app reference.

_store(key: str, value: str) None[source]

Store a value in memory.

_retrieve(key: str) str[source]

Retrieve a value from memory.

_purge() None[source]

Clear the memory cache.