cosmos_db_cache
autogen.cache.cosmos_db_cache.CosmosDBCache
CosmosDBCache
Synchronous implementation of AbstractCache using Azure Cosmos DB NoSQL API.
This class provides a concrete implementation of the AbstractCache interface using Azure Cosmos DB for caching data, with synchronous operations.
Attributes: seed (Union[str, int]): A seed or namespace used as a partition key. client (CosmosClient): The Cosmos DB client used for caching. container: The container instance used for caching.
Initialize the CosmosDBCache instance.
Parameters:Name | Description |
---|---|
**kwargs |
Class Attributes
create_cache
from_config
from_connection_string