(r)
| 57 | |
| 58 | @skip_if_server_version_lt("7.3.240") |
| 59 | def test_hexpire_multiple_fields(r): |
| 60 | r.delete("test:hash") |
| 61 | r.hset( |
| 62 | "test:hash", |
| 63 | mapping={"field1": "value1", "field2": "value2", "field3": "value3"}, |
| 64 | ) |
| 65 | assert r.hexpire("test:hash", 1, "field1", "field2") == [1, 1] |
| 66 | time.sleep(1.1) |
| 67 | assert r.hexists("test:hash", "field1") is False |
| 68 | assert r.hexists("test:hash", "field2") is False |
| 69 | assert r.hexists("test:hash", "field3") is True |
| 70 | |
| 71 | |
| 72 | @skip_if_server_version_lt("7.3.240") |