diff options
author | Itamar Haber <itamar@redislabs.com> | 2018-11-09 16:09:30 +0200 |
---|---|---|
committer | Itamar Haber <itamar@redislabs.com> | 2018-11-09 16:09:30 +0200 |
commit | b7d718054cbec4e4609312c96d25d08049685dfd (patch) | |
tree | ac3260ed256ddb6cd0fe7176e04eafe4d6c748bc /tests/test_commands.py | |
parent | e9d48c9b93b489519608b8a2c4a988d431022617 (diff) | |
download | redis-py-b7d718054cbec4e4609312c96d25d08049685dfd.tar.gz |
Adds the memory_usage and memory_purge commands
Signed-off-by: Itamar Haber <itamar@redislabs.com>
Diffstat (limited to 'tests/test_commands.py')
-rw-r--r-- | tests/test_commands.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/test_commands.py b/tests/test_commands.py index 15e7620..cd3b13d 100644 --- a/tests/test_commands.py +++ b/tests/test_commands.py @@ -2177,6 +2177,11 @@ class TestRedisCommands(object): .execute()) assert resp == [0, None, 255] + @skip_if_server_version_lt('4.0.0') + def test_memory_usage(self, r): + r.set('foo', 'bar') + assert isinstance(r.memory_usage('foo'), int) + class TestStrictCommands(object): def test_strict_zadd(self, sr): |