(r)
| 323 | |
| 324 | @skip_if_server_version_lt("7.9.0") |
| 325 | async def test_hgetex_no_expiration(r): |
| 326 | await r.delete("test:hash") |
| 327 | await r.hset( |
| 328 | "b", "foo", "bar", mapping={"1": 1, "2": 2, "3": "three", "4": b"four"} |
| 329 | ) |
| 330 | |
| 331 | assert await r.hgetex("b", "foo", "1", "4") == [b"bar", b"1", b"four"] |
| 332 | assert await r.hgetex("b", "foo") == [b"bar"] |
| 333 | assert await r.httl("b", "foo", "1", "4") == [-1, -1, -1] |
| 334 | |
| 335 | |
| 336 | @skip_if_server_version_lt("7.9.0") |