redis 2.0.6 → 2.0.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/lib/redis.rb +6 -2
  2. data/lib/redis/distributed.rb +4 -0
  3. metadata +3 -3
@@ -1,7 +1,7 @@
1
1
  require 'socket'
2
2
 
3
3
  class Redis
4
- VERSION = "2.0.6"
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
- _bool @client.call(:del, *keys)
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
@@ -94,6 +94,10 @@ class Redis
94
94
  node_for(key).expireat(key, unix_time)
95
95
  end
96
96
 
97
+ def persist(key)
98
+ node_for(key).persist(key)
99
+ end
100
+
97
101
  def ttl(key)
98
102
  node_for(key).ttl(key)
99
103
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 2
7
7
  - 0
8
- - 6
9
- version: 2.0.6
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-07 00:00:00 -03:00
24
+ date: 2010-09-13 00:00:00 -03:00
25
25
  default_executable:
26
26
  dependencies: []
27
27