diff options
author | Konstantin Merenkov <kmerenkov@gmail.com> | 2010-04-16 18:16:44 +0800 |
---|---|---|
committer | Andy McCurdy <andy@andymccurdy.com> | 2010-04-17 01:24:07 +0800 |
commit | 8b58178a946d7a846f4ff8f4b5d75243554bf8ec (patch) | |
tree | 10bc0b198fe8e43bfa4407fb18ce93eb0b142667 /redis/client.py | |
parent | 40a8ff22e39009e5cc98538ab4ff781e31511d31 (diff) | |
download | redis-py-8b58178a946d7a846f4ff8f4b5d75243554bf8ec.tar.gz |
HMGET + tests
Diffstat (limited to 'redis/client.py')
-rw-r--r-- | redis/client.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/redis/client.py b/redis/client.py index 51986a0..a696e2b 100644 --- a/redis/client.py +++ b/redis/client.py @@ -1007,6 +1007,10 @@ class Redis(threading.local): [items.extend(pair) for pair in mapping.iteritems()] return self.execute_command('HMSET', key, *items) + def hmget(self, name, keys): + "Returns a list of values ordered identically to ``keys``" + return self.execute_command('HMGET', name, *keys) + def hvals(self, name): "Return the list of values within hash ``name``" return self.execute_command('HVALS', name) |