model-cache 0.2.6 → 0.2.7
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/model-cache.rb +1 -1
- metadata +2 -2
data/lib/model-cache.rb
CHANGED
@@ -73,7 +73,7 @@ module ModelCache
|
|
73
73
|
cache_hit = true
|
74
74
|
rescue Memcached::NotFound => e
|
75
75
|
end
|
76
|
-
elsif CACHE.class.name == 'MemCache'
|
76
|
+
elsif CACHE.class.name == 'MemCache' or CACHE.class.name == 'Dalli::Client'
|
77
77
|
result = CACHE.get(ckey.hash.to_s)
|
78
78
|
if result
|
79
79
|
cache_hit = true
|