AccuralAI Cache Memory
In-memory cache implementations.
- class accuralai_cache.memory.MemoryCacheOptions(*args: Any, **kwargs: Any)[source]
Bases:
CacheConfigConfiguration options for in-memory cache behaviour.
- class accuralai_cache.memory.MemoryCache(*, options: MemoryCacheOptions | None = None)[source]
Bases:
BaseCacheLRU-style cache with TTL support.
- __init__(*, options: MemoryCacheOptions | None = None) None[source]
- async accuralai_cache.memory.build_memory_cache(*, config: Mapping[str, Any] | Any | None = None, **_: Any) MemoryCache[source]
Factory for registering the advanced memory cache.
- accuralai_cache.memory.AdvancedMemoryCache
alias of
MemoryCache
- accuralai_cache.memory.CacheOptions
alias of
MemoryCacheOptions