Skip to content

Commit dec3731

Browse files
committed
Document the restore(replace) option.
1 parent 8c176cd commit dec3731

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

redis/client.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1815,6 +1815,9 @@ def restore(self, name, ttl, value, replace=False):
18151815
"""
18161816
Create a key using the provided serialized value, previously obtained
18171817
using DUMP.
1818+
1819+
``replace`` allows an existing key on ``name`` to be overridden. If
1820+
it's not specified an error is raised on collision.
18181821
"""
18191822
params = [name, ttl, value]
18201823
if replace:

0 commit comments

Comments
 (0)