Permalink
Browse files

Releasing 1.0.7 to fix SET with expires on earlier versions of Redis.

  • Loading branch information...
1 parent a726a8e commit 5cbc68d9f2dcc29b06fd575d319144dbf5046e30 Damian Janowski & Michel Martens committed Apr 28, 2010
Showing with 4 additions and 5 deletions.
  1. +1 −1 lib/redis.rb
  2. +3 −4 lib/redis/client.rb
View
@@ -1,7 +1,7 @@
require 'socket'
class Redis
- VERSION = "1.0.6"
+ VERSION = "1.0.7"
def self.new(*attrs)
Client.new(*attrs)
View
@@ -188,10 +188,9 @@ def set(key, value, ttl = nil)
end
def set_with_expire(key, value, ttl)
- multi do
- set(key, value)
- expire(key, ttl)
- end
+ Redis.deprecate "Using a non-atomic set with expire. Use setex if your Redis version allows it.", caller[0]
+ set(key, value)
+ expire(key, ttl)
end
def mset(*args)

0 comments on commit 5cbc68d

Please sign in to comment.