redis_buddy 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/redis_buddy/cache_store.rb +3 -2
  2. metadata +2 -2
@@ -10,8 +10,9 @@ module ActiveSupport
10
10
  def write(key, value, options = nil)
11
11
  super do
12
12
  method = options && options[:unless_exist] ? :set_unless_exists : :set
13
- @data.send method, key, value, options
14
- @data.expire key, options[:expire] if options && options[:expire]
13
+ returning @data.send(method, key, value, options) do
14
+ @data.expire key, options[:expire] if options && options[:expire]
15
+ end
15
16
  end
16
17
  end
17
18
 
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 1
8
- - 1
9
- version: 0.1.1
8
+ - 2
9
+ version: 0.1.2
10
10
  platform: ruby
11
11
  authors:
12
12
  - Ole Riesenberg