diff options
author | dvora-h <67596500+dvora-h@users.noreply.github.com> | 2022-03-07 01:33:57 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-07 01:33:57 +0200 |
commit | 1f2259fa3078d38048060a429837fb13f397686e (patch) | |
tree | a3b92ea4df329c9e4a733cb780055a6e9714df95 /tests/test_commands.py | |
parent | f987a0cc86bd37aeaec3d73547c6176b651acd7b (diff) | |
download | redis-py-1f2259fa3078d38048060a429837fb13f397686e.tar.gz |
Add support for PEXPIRETIME (#1861)
* add pexpiretime
* skip test
Diffstat (limited to 'tests/test_commands.py')
-rw-r--r-- | tests/test_commands.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/test_commands.py b/tests/test_commands.py index be60b6e..a73541e 100644 --- a/tests/test_commands.py +++ b/tests/test_commands.py @@ -1254,6 +1254,12 @@ class TestRedisCommands: assert r.pexpireat("a", expire_at_seconds) is True assert 0 < r.pttl("a") <= 61000 + @skip_if_server_version_lt("7.0.0") + def test_pexpiretime(self, r): + r.set("a", "foo") + r.pexpireat("a", 33177117420000) + assert r.pexpiretime("a") == 33177117420000 + @skip_if_server_version_lt("2.6.0") def test_psetex(self, r): assert r.psetex("a", 1000, "value") |