redis 2.0.6 → 2.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/redis.rb +6 -2
- data/lib/redis/distributed.rb +4 -0
- metadata +3 -3
data/lib/redis.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
require 'socket'
|
2
2
|
|
3
3
|
class Redis
|
4
|
-
VERSION = "2.0.
|
4
|
+
VERSION = "2.0.7"
|
5
5
|
|
6
6
|
class ProtocolError < RuntimeError
|
7
7
|
def initialize(reply_type)
|
@@ -341,7 +341,7 @@ class Redis
|
|
341
341
|
end
|
342
342
|
|
343
343
|
def del(*keys)
|
344
|
-
|
344
|
+
@client.call(:del, *keys)
|
345
345
|
end
|
346
346
|
|
347
347
|
def rename(old_name, new_name)
|
@@ -356,6 +356,10 @@ class Redis
|
|
356
356
|
_bool @client.call(:expire, key, seconds)
|
357
357
|
end
|
358
358
|
|
359
|
+
def persist(key)
|
360
|
+
_bool @client.call(:persist, key)
|
361
|
+
end
|
362
|
+
|
359
363
|
def ttl(key)
|
360
364
|
@client.call(:ttl, key)
|
361
365
|
end
|
data/lib/redis/distributed.rb
CHANGED
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 2
|
7
7
|
- 0
|
8
|
-
-
|
9
|
-
version: 2.0.
|
8
|
+
- 7
|
9
|
+
version: 2.0.7
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Ezra Zygmuntowicz
|
@@ -21,7 +21,7 @@ autorequire: redis
|
|
21
21
|
bindir: bin
|
22
22
|
cert_chain: []
|
23
23
|
|
24
|
-
date: 2010-09-
|
24
|
+
date: 2010-09-13 00:00:00 -03:00
|
25
25
|
default_executable:
|
26
26
|
dependencies: []
|
27
27
|
|