CosmosDBCache
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:
Instance Methods
close
Perform any necessary cleanup, such as closing network connections.
create_cache
This method decides whether to use an existing CosmosClient or create a new one. Parameters:
from_config
from_connection_string
from_existing_client
get
Parameters:
Returns:
set
Parameters: