MCPcopy
hub / github.com/redis/redis-py / _assert_cache

Method _assert_cache

redis/cache.py:347–349  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

345 self._cache.collection.move_to_end(cache_key)
346
347 def _assert_cache(self):
348 if self.cache is None or not isinstance(self.cache, CacheInterface):
349 raise ValueError("Eviction policy should be associated with valid cache.")
350
351
352class EvictionPolicy(Enum):

Callers 3

evict_nextMethod · 0.95
evict_manyMethod · 0.95
touchMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected