python_infrastructure_exceptions.cache

Cache infrastructure exceptions.

Classes

CacheError

Cache infrastructure error.

Module Contents

class python_infrastructure_exceptions.cache.CacheError(message: str, details: str = None, cache_backend: str = None, key: str = None)

Bases: python_infrastructure_exceptions.base.InfrastructureException

Cache infrastructure error.

Use for: - Redis connection failures - Memcached unavailable - Cache miss (when critical) - Serialization errors - Cache invalidation failures

Examples:

raise CacheError(“Redis connection failed”, details=”Connection refused to localhost:6379”) raise CacheError(“Cache serialization failed”, details=”Object not pickle-able”) raise CacheError(“Cache miss for critical key”, details=”key=user_session_123”)

cache_backend = None
key = None