python_infrastructure_exceptions.cache ====================================== .. py:module:: python_infrastructure_exceptions.cache .. autoapi-nested-parse:: Cache infrastructure exceptions. Classes ------- .. autoapisummary:: python_infrastructure_exceptions.cache.CacheError Module Contents --------------- .. py:class:: CacheError(message: str, details: str = None, cache_backend: str = None, key: str = None) Bases: :py:obj:`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") .. py:attribute:: cache_backend :value: None .. py:attribute:: key :value: None