diff options
Diffstat (limited to 'redis/client.py')
-rwxr-xr-x | redis/client.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/redis/client.py b/redis/client.py index ef3c82c..fe6299f 100755 --- a/redis/client.py +++ b/redis/client.py @@ -1707,6 +1707,15 @@ class Redis: """ return self.execute_command('GET', name) + def getdel(self, name): + """ + Get the value at key ``name`` and delete the key. This command + is similar to GET, except for the fact that it also deletes + the key on success (if and only if the key's value type + is a string). + """ + return self.execute_command('GETDEL', name) + def getex(self, name, ex=None, px=None, exat=None, pxat=None, persist=False): """ |