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

Function test_hgetex_no_expiration

tests/test_hash.py:392–397  ·  view source on GitHub ↗
(r)

Source from the content-addressed store, hash-verified

390
391@skip_if_server_version_lt("7.9.0")
392def test_hgetex_no_expiration(r):
393 r.delete("test:hash")
394 r.hset("b", "foo", "bar", mapping={"1": 1, "2": 2, "3": "three", "4": b"four"})
395
396 assert r.hgetex("b", "foo", "1", "4") == [b"bar", b"1", b"four"]
397 assert r.httl("b", "foo", "1", "4") == [-1, -1, -1]
398
399
400@skip_if_server_version_lt("7.9.0")

Callers

nothing calls this directly

Calls 4

hsetMethod · 0.80
hgetexMethod · 0.80
httlMethod · 0.80
deleteMethod · 0.45

Tested by

no test coverage detected