Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/redis/redis-py
/ get_cache
Method
get_cache
redis/client.py:880–881 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
878
return
response
879
880
def
get_cache(self) -> Optional[CacheInterface]:
881
return
self.connection_pool.cache
882
883
884
StrictRedis = Redis
Callers
15
test_get_from_given_cache
Method · 0.45
test_hash_get_from_given_cache
Method · 0.45
test_get_from_default_cache
Method · 0.45
test_cache_clears_on_disconnect
Method · 0.45
test_cache_lru_eviction
Method · 0.45
test_cache_ignore_not_allowed_command
Method · 0.45
test_cache_invalidate_all_related_responses
Method · 0.45
test_cache_flushed_on_server_flush
Method · 0.45
test_get_from_cache
Method · 0.45
test_get_from_custom_cache
Method · 0.45
test_cache_clears_on_disconnect
Method · 0.45
test_cache_lru_eviction
Method · 0.45
Calls
no outgoing calls
Tested by
15
test_get_from_given_cache
Method · 0.36
test_hash_get_from_given_cache
Method · 0.36
test_get_from_default_cache
Method · 0.36
test_cache_clears_on_disconnect
Method · 0.36
test_cache_lru_eviction
Method · 0.36
test_cache_ignore_not_allowed_command
Method · 0.36
test_cache_invalidate_all_related_responses
Method · 0.36
test_cache_flushed_on_server_flush
Method · 0.36
test_get_from_cache
Method · 0.36
test_get_from_custom_cache
Method · 0.36
test_cache_clears_on_disconnect
Method · 0.36
test_cache_lru_eviction
Method · 0.36