RubyGems
npm
Organizations
Log in
Sign up
RubyGems
model-cache
Versions diffs
0.2.5 → 0.2.6
model-cache 0.2.5 → 0.2.6
Sign up to get
free
protection for your applications and to get access to all the features.
Files changed (2)
hide
show
data/lib/model-cache.rb
+1
-1
metadata
+2
-2
data/lib/model-cache.rb
CHANGED
Viewed
@@ -32,7 +32,7 @@ module ModelCache
32
32
end
33
33
unless cache_hit
34
34
result = block.call
35
-
if CACHE.class.name == 'MemCache'
35
+
if CACHE.class.name == 'MemCache'
or CACHE.class.name == 'Dalli::Client'
36
36
if result
37
37
CACHE.set(ckey.hash.to_s, result, time)
38
38
else
metadata
CHANGED
Viewed
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
segments:
6
6
- 0
7
7
- 2
8
-
-
5
9
-
version: 0.2.
5
8
+
-
6
9
+
version: 0.2.
6
10
10
platform: ruby
11
11
authors:
12
12
- Frantisek Havluj