| Name | Type | Description |
|---|---|---|
**kwargs | Any | Default: {}Additional keyword arguments. Currently not used, but included for potential future extensions. |
Clear all entries in the Redis cache that match the cache prefix.
This method removes all cache entries that start with the specified prefix.
Example:
.. code-block:: python
cache = RedisCache( redis_url="redis://localhost:6379", prefix="my_cache" )
cache.update("prompt1", "llm1", [Generation(text="Result 1")]) cache.update("prompt2", "llm2", [Generation(text="Result 2")])
cache.clear()
Note: