pynenc.client_data_store.mem_client_data_store

Memory-based client data store for development and testing.

Stores serialized data in a local Python dictionary. Not suitable for production — cache is not shared between processes.

Key components:

  • MemClientDataStore: In-memory dict-backed client data store

Module Contents

Classes

MemClientDataStore

Memory-based implementation of the client data store.

API

class pynenc.client_data_store.mem_client_data_store.MemClientDataStore(app: pynenc.app.Pynenc)[source]

Bases: pynenc.client_data_store.base_client_data_store.BaseClientDataStore

Memory-based implementation of the client data store.

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

Initialization

Initialize with app reference.

Parameters:

app (Pynenc) – The Pynenc application instance

_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 store.