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

Function test_hsetex_no_expiration

tests/test_asyncio/test_hash.py:419–425  ·  view source on GitHub ↗
(r)

Source from the content-addressed store, hash-verified

417
418@skip_if_server_version_lt("7.9.0")
419async def test_hsetex_no_expiration(r):
420 await r.delete("test:hash")
421
422 # # set items from mapping without expiration
423 assert await r.hsetex("test:hash", None, None, mapping={"1": 1, "4": b"four"}) == 1
424 assert await r.httl("test:hash", "foo", "1", "4") == [-2, -1, -1]
425 assert await r.hgetex("test:hash", "foo", "1") == [None, b"1"]
426
427
428@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