relstorage.cache.interfaces

exception CacheConsistencyError[source]

Bases: StorageError, TransientError

Raised when we detect internal cache corruption, having to do with transactional consistency.

This is probably a transient error. By the time it is raised, the faulty cache will have been cleared, and we can try again.

exception CacheCorruptedError[source]

Bases: StorageError

Raised when we detect internal cache corruption, outside of any particular transaction.