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

Method test_msetex_no_expiration

tests/test_commands.py:2601–2610  ·  view source on GitHub ↗
(self, r)

Source from the content-addressed store, hash-verified

2599 @pytest.mark.onlynoncluster
2600 @skip_if_server_version_lt("8.3.224")
2601 def test_msetex_no_expiration(self, r):
2602 all_test_keys = ["1", "2"]
2603 for key in all_test_keys:
2604 r.delete(key)
2605
2606 # # set items from mapping without expiration
2607 assert r.msetex(mapping={"1": 1, "2": b"four"}) == 1
2608 assert r.mget("1", "2") == [b"1", b"four"]
2609 assert r.ttl("1") == -1
2610 assert r.ttl("2") == -1
2611
2612 @pytest.mark.onlynoncluster
2613 @skip_if_server_version_lt("8.3.224")

Callers

nothing calls this directly

Calls 4

msetexMethod · 0.80
deleteMethod · 0.45
mgetMethod · 0.45
ttlMethod · 0.45

Tested by

no test coverage detected