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

Method test_restore_frequency

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

Source from the content-addressed store, hash-verified

8185
8186 @skip_if_server_version_lt("5.0.0")
8187 def test_restore_frequency(self, r):
8188 key = "yayakey"
8189 r.set(key, "blee!")
8190 dumpdata = r.dump(key)
8191 r.delete(key)
8192 assert r.restore(key, 0, dumpdata, frequency=5)
8193 assert r.get(key) == b"blee!"
8194
8195 @pytest.mark.onlynoncluster
8196 @skip_if_server_version_lt("5.0.0")

Callers

nothing calls this directly

Calls 5

dumpMethod · 0.80
restoreMethod · 0.80
setMethod · 0.45
deleteMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected