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

Method test_memory_usage

tests/test_commands.py:8028–8030  ·  view source on GitHub ↗
(self, r)

Source from the content-addressed store, hash-verified

8026
8027 @skip_if_server_version_lt("4.0.0")
8028 def test_memory_usage(self, r):
8029 r.set("foo", "bar")
8030 assert isinstance(r.memory_usage("foo"), int)
8031
8032 @skip_if_server_version_lt("7.0.0")
8033 def test_latency_histogram_not_implemented(self, r: redis.Redis):

Callers

nothing calls this directly

Calls 2

memory_usageMethod · 0.80
setMethod · 0.45

Tested by

no test coverage detected