redis_buddy 0.1.1 → 0.1.2

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 (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