lib/redis.rb in redis-2.0.6 vs lib/redis.rb in redis-2.0.7
- old
+ new
@@ -1,9 +1,9 @@
require 'socket'
class Redis
- VERSION = "2.0.6"
+ VERSION = "2.0.7"
class ProtocolError < RuntimeError
def initialize(reply_type)
super("Protocol error, got '#{reply_type}' as initial reply byte")
end
@@ -339,11 +339,11 @@
def setnx(key, value)
_bool @client.call(:setnx, key, value)
end
def del(*keys)
- _bool @client.call(:del, *keys)
+ @client.call(:del, *keys)
end
def rename(old_name, new_name)
@client.call(:rename, old_name, new_name)
end
@@ -352,9 +352,13 @@
_bool @client.call(:renamenx, old_name, new_name)
end
def expire(key, seconds)
_bool @client.call(:expire, key, seconds)
+ end
+
+ def persist(key)
+ _bool @client.call(:persist, key)
end
def ttl(key)
@client.call(:ttl, key)
end