redis 1.0.6 → 1.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.
Files changed (3) hide show
  1. data/lib/redis.rb +1 -1
  2. data/lib/redis/client.rb +3 -4
  3. metadata +3 -3
@@ -1,7 +1,7 @@
1
1
  require 'socket'
2
2
 
3
3
  class Redis
4
- VERSION = "1.0.6"
4
+ VERSION = "1.0.7"
5
5
 
6
6
  def self.new(*attrs)
7
7
  Client.new(*attrs)
@@ -188,10 +188,9 @@ class Redis
188
188
  end
189
189
 
190
190
  def set_with_expire(key, value, ttl)
191
- multi do
192
- set(key, value)
193
- expire(key, ttl)
194
- end
191
+ Redis.deprecate "Using a non-atomic set with expire. Use setex if your Redis version allows it.", caller[0]
192
+ set(key, value)
193
+ expire(key, ttl)
195
194
  end
196
195
 
197
196
  def mset(*args)
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 1
7
7
  - 0
8
- - 6
9
- version: 1.0.6
8
+ - 7
9
+ version: 1.0.7
10
10
  platform: ruby
11
11
  authors:
12
12
  - Ezra Zygmuntowicz
@@ -19,7 +19,7 @@ autorequire: redis
19
19
  bindir: bin
20
20
  cert_chain: []
21
21
 
22
- date: 2010-04-26 00:00:00 -03:00
22
+ date: 2010-04-28 00:00:00 -03:00
23
23
  default_executable:
24
24
  dependencies: []
25
25