Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit 5cbc68d9f2dcc29b06fd575d319144dbf5046e30 1 parent a726a8e
Damian Janowski & Michel Martens authored
Showing with 4 additions and 5 deletions.
  1. +1 −1  lib/redis.rb
  2. +3 −4 lib/redis/client.rb
2  lib/redis.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)
7 lib/redis/client.rb
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)
Please sign in to comment.
Something went wrong with that request. Please try again.