(r)
| 390 | |
| 391 | @skip_if_server_version_lt("7.9.0") |
| 392 | def 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") |