summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgeorge yoshida <dynkin@gmail.com>2013-04-27 22:13:20 +0900
committergeorge yoshida <dynkin@gmail.com>2013-04-27 22:13:20 +0900
commit9fabd0912ac2cefcbf57bb71243c0f273524d1fc (patch)
tree0e1755f5af9dc14f1a75882a5374cc11defbfad3
parent107bc12f720ec4a4be36dda81f604d3ff86ff22b (diff)
downloadredis-py-9fabd0912ac2cefcbf57bb71243c0f273524d1fc.tar.gz
Implement extended set options added in Redis 2.6.12.
- fix wording/formatting
-rw-r--r--redis/client.py1
-rw-r--r--tests/server_commands.py4
2 files changed, 2 insertions, 3 deletions
diff --git a/redis/client.py b/redis/client.py
index 5253543..8a63d09 100644
--- a/redis/client.py
+++ b/redis/client.py
@@ -213,7 +213,6 @@ class StrictRedis(object):
string_keys_to_dict('ZSCORE ZINCRBY', float_or_none),
string_keys_to_dict(
'FLUSHALL FLUSHDB LSET LTRIM MSET RENAME '
-# 'SAVE SELECT SET SHUTDOWN SLAVEOF WATCH UNWATCH',
'SAVE SELECT SHUTDOWN SLAVEOF WATCH UNWATCH',
lambda r: nativestr(r) == 'OK'
),
diff --git a/tests/server_commands.py b/tests/server_commands.py
index 4a48ffb..3880625 100644
--- a/tests/server_commands.py
+++ b/tests/server_commands.py
@@ -473,7 +473,7 @@ class ServerCommandsTestCase(unittest.TestCase):
self.assertEquals(self.client['foo'], b('1'))
self.assert_(self.client.pttl('foo'), 10000)
self.assert_(self.client.ttl('foo'), 10)
- # expire given a timeelta
+ # expire given a timedelta
expire_at = datetime.timedelta(milliseconds=1000)
self.assertEquals(self.client.set('foo', '1', px=expire_at), True)
self.assert_(self.client.pttl('foo'), 1000)
@@ -482,7 +482,7 @@ class ServerCommandsTestCase(unittest.TestCase):
def test_set_ex(self):
self.assertEquals(self.client.set('foo', '1', ex=10), True)
self.assertEquals(self.client.ttl('foo'), 10)
- # expire given a timeelta
+ # expire given a timedelta
expire_at = datetime.timedelta(seconds=60)
self.assertEquals(self.client.set('foo', '1', ex=expire_at), True)
self.assertEquals(self.client.ttl('foo'), 60)