pynenc.conf.config_client_data_store¶
Configuration for the ClientDataStore system.
Controls serialization caching, external storage thresholds, and local cache sizes for client-provided data (arguments, results, exceptions).
Key components:
ConfigClientDataStore: Base configuration for all client data store implementations
ConfigClientDataStoreSQLite: SQLite-specific configuration
Module Contents¶
Classes¶
Configuration for the client data store system. |
|
SQLite-based client data store configuration. |
API¶
- class pynenc.conf.config_client_data_store.ConfigClientDataStore(config_values: dict[str, Any] | None = None, config_filepath: str | None = None)[source]¶
Bases:
pynenc.conf.config_base.ConfigPynencBaseConfiguration for the client data store system.
Controls when serialized values are stored externally vs returned inline, local caching behavior, and size monitoring thresholds.
- Variables:
disable_client_data_store (ConfigField[bool]) – bool If True, bypass all client data store functionality, returning serialized data directly. Useful for testing or when external storage isn’t needed. Default False.
min_size_to_cache (ConfigField[int]) – Minimum serialized string length (characters) to store externally. Values smaller than this are returned inline as serialized strings. Default 1024 (~1KB) — caching overhead isn’t worth it for smaller values.
max_size_to_cache (ConfigField[int]) – Maximum serialized string length (characters) to store externally. Values larger than this will be stored in chunks. Set to 0 to disable the limit (no maximum). Default 0. Backend implementations may override based on storage constraints.
local_cache_size (ConfigField[int]) – Maximum entries per local LRU cache tier. Default 1024.
warn_threshold (ConfigField[int]) – Log a warning when any single value exceeds this size in bytes. Helps developers identify unexpectedly large arguments/results. Default 10MB (10_485_760 bytes).
compression_enabled (ConfigField[bool]) – Enable compression for externally stored values. Default False. Future feature — reserved for zstd/lz4 compression support.
Initialization
- class pynenc.conf.config_client_data_store.ConfigClientDataStoreSQLite(config_values: dict[str, Any] | None = None, config_filepath: str | None = None)[source]¶
Bases:
pynenc.conf.config_client_data_store.ConfigClientDataStore,pynenc.conf.config_sqlite.ConfigSQLiteSQLite-based client data store configuration.
Initialization