tlc.service.lru_cache_store¶
Module Contents¶
Classes¶
Class |
Description |
|---|---|
LRUCache backend configuration. |
|
In-memory LRU cache backend. |
API¶
- class LRUCacheStoreConfig(
- /,
- **data: typing.Any,
Bases:
pydantic.BaseModelLRUCache backend configuration.
Create a new model by parsing and validating input data from keyword arguments.
Raises [
ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.selfis explicitly positional-only to allowselfas a field name.
- class LRUCacheStore(
- config: LRUCacheStoreConfig,
Bases:
litestar.stores.base.StoreIn-memory LRU cache backend.
Initialize
LRUCacheBackend