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

Method test_dump_and_restore

tests/test_asyncio/test_commands.py:1496–1501  ·  view source on GitHub ↗
(self, r: redis.Redis)

Source from the content-addressed store, hash-verified

1494
1495 @skip_if_server_version_lt("2.6.0")
1496 async def test_dump_and_restore(self, r: redis.Redis):
1497 await r.set("a", "foo")
1498 dumped = await r.dump("a")
1499 await r.delete("a")
1500 await r.restore("a", 0, dumped)
1501 assert await r.get("a") == b"foo"
1502
1503 @skip_if_server_version_lt("3.0.0")
1504 async def test_dump_and_restore_and_replace(self, r: redis.Redis):

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