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

Function test_hsetex_no_expiration

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

Source from the content-addressed store, hash-verified

466
467@skip_if_server_version_lt("7.9.0")
468def test_hsetex_no_expiration(r):
469 r.delete("test:hash")
470
471 # # set items from mapping without expiration
472 assert r.hsetex("test:hash", None, None, mapping={"1": 1, "4": b"four"}) == 1
473 assert r.httl("test:hash", "foo", "1", "4") == [-2, -1, -1]
474 assert r.hgetex("test:hash", "foo", "1") == [None, b"1"]
475
476
477@skip_if_server_version_lt("7.9.0")

Callers

nothing calls this directly

Calls 4

hsetexMethod · 0.80
httlMethod · 0.80
hgetexMethod · 0.80
deleteMethod · 0.45

Tested by

no test coverage detected