pynenc.conf.config_arg_cache

Module Contents

Classes

ConfigArgCache

Configuration for the argument cache system.

ConfigArgCacheRedis

Specific Configuration for the Redis Argument Cache

API

class pynenc.conf.config_arg_cache.ConfigArgCache(config_values: Optional[dict[str, Any]] = None, config_filepath: Optional[str] = None)[source]

Bases: pynenc.conf.config_base.ConfigPynencBase

Configuration for the argument cache system.

Variables:
  • min_size_to_cache (ConfigField[int]) – Minimum string length (in characters) required to cache an argument. Arguments smaller than this size will be passed directly. Default is 1024 characters (roughly 1KB), as caching overhead isn’t worth it for smaller values.

  • local_cache_size (ConfigField[int]) – Maximum number of items to cache locally.

Initialization

min_size_to_cache

‘ConfigField(…)’

local_cache_size

‘ConfigField(…)’

class pynenc.conf.config_arg_cache.ConfigArgCacheRedis(config_values: Optional[dict[str, Any]] = None, config_filepath: Optional[str] = None)[source]

Bases: pynenc.conf.config_arg_cache.ConfigArgCache, pynenc.conf.config_redis.ConfigRedis

Specific Configuration for the Redis Argument Cache

Initialization