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

Function test_hgetex_no_expiration

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

Source from the content-addressed store, hash-verified

323
324@skip_if_server_version_lt("7.9.0")
325async 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")

Callers

nothing calls this directly

Calls 4

hsetMethod · 0.80
hgetexMethod · 0.80
httlMethod · 0.80
deleteMethod · 0.45

Tested by

no test coverage detected