CosmosDBCache

CosmosDBCache(**kwargs)

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:
NameDescription
**kwargs

Class Attributes

create_cache



from_config



from_connection_string



from_existing_client