chore: remove cloud-specific language from cache provider API

Make all docstrings and comments generic for the OSS codebase.
Remove references to Kubernetes, Redis, GCS, pods, and other
infrastructure-specific terminology.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Deep Mehta
2026-03-03 16:52:08 -08:00
parent 33a0cc2885
commit 311a2d59e4
3 changed files with 26 additions and 27 deletions

View File

@@ -119,24 +119,23 @@ class Types:
class Caching:
"""
External cache provider API for distributed caching.
External cache provider API.
Enables sharing cached results across multiple ComfyUI instances
(e.g., Kubernetes pods) without monkey-patching internal methods.
Enables sharing cached results across multiple ComfyUI instances.
Example usage:
from comfy_api.latest import Caching
class MyRedisProvider(Caching.CacheProvider):
class MyCacheProvider(Caching.CacheProvider):
async def on_lookup(self, context):
# Check Redis for cached result
# Check external storage for cached result
...
async def on_store(self, context, value):
# Store to Redis
# Store result to external storage
...
Caching.register_provider(MyRedisProvider())
Caching.register_provider(MyCacheProvider())
"""
# Import from comfy_execution.cache_provider (source of truth)
from comfy_execution.cache_provider import (