ai-station/.venv/lib/python3.12/site-packages/litellm/caching
DFFM-maker 2705b5219d Primo salvataggio dopo il ripristino 2025-12-25 15:54:33 +01:00
..
__pycache__ Primo salvataggio dopo il ripristino 2025-12-25 15:54:33 +01:00
Readme.md Primo salvataggio dopo il ripristino 2025-12-25 15:54:33 +01:00
__init__.py Primo salvataggio dopo il ripristino 2025-12-25 15:54:33 +01:00
_internal_lru_cache.py Primo salvataggio dopo il ripristino 2025-12-25 15:54:33 +01:00
azure_blob_cache.py Primo salvataggio dopo il ripristino 2025-12-25 15:54:33 +01:00
base_cache.py Primo salvataggio dopo il ripristino 2025-12-25 15:54:33 +01:00
caching.py Primo salvataggio dopo il ripristino 2025-12-25 15:54:33 +01:00
caching_handler.py Primo salvataggio dopo il ripristino 2025-12-25 15:54:33 +01:00
disk_cache.py Primo salvataggio dopo il ripristino 2025-12-25 15:54:33 +01:00
dual_cache.py Primo salvataggio dopo il ripristino 2025-12-25 15:54:33 +01:00
gcs_cache.py Primo salvataggio dopo il ripristino 2025-12-25 15:54:33 +01:00
in_memory_cache.py Primo salvataggio dopo il ripristino 2025-12-25 15:54:33 +01:00
llm_caching_handler.py Primo salvataggio dopo il ripristino 2025-12-25 15:54:33 +01:00
qdrant_semantic_cache.py Primo salvataggio dopo il ripristino 2025-12-25 15:54:33 +01:00
redis_cache.py Primo salvataggio dopo il ripristino 2025-12-25 15:54:33 +01:00
redis_cluster_cache.py Primo salvataggio dopo il ripristino 2025-12-25 15:54:33 +01:00
redis_semantic_cache.py Primo salvataggio dopo il ripristino 2025-12-25 15:54:33 +01:00
s3_cache.py Primo salvataggio dopo il ripristino 2025-12-25 15:54:33 +01:00

Readme.md

Caching on LiteLLM

LiteLLM supports multiple caching mechanisms. This allows users to choose the most suitable caching solution for their use case.

The following caching mechanisms are supported:

  1. RedisCache
  2. RedisSemanticCache
  3. QdrantSemanticCache
  4. InMemoryCache
  5. DiskCache
  6. S3Cache
  7. AzureBlobCache
  8. DualCache (updates both Redis and an in-memory cache simultaneously)

Folder Structure

litellm/caching/
├── base_cache.py
├── caching.py
├── caching_handler.py
├── disk_cache.py
├── dual_cache.py
├── in_memory_cache.py
├── qdrant_semantic_cache.py
├── redis_cache.py
├── redis_semantic_cache.py
├── s3_cache.py

Documentation