tlc.service.lru_cache_store
¶
Module Contents¶
Classes¶
Class |
Description |
---|---|
LRUCache backend configuration. |
|
In-memory LRU cache backend. |
API¶
- class tlc.service.lru_cache_store.LRUCacheStoreConfig(/, **data: typing.Any)¶
Bases:
pydantic.BaseModel
LRUCache 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.self
is explicitly positional-only to allowself
as a field name.
- class tlc.service.lru_cache_store.LRUCacheStore(config: tlc.service.lru_cache_store.LRUCacheStoreConfig)¶
Bases:
litestar.stores.base.Store
In-memory LRU cache backend.
Initialize
LRUCacheBackend