cachetastic 3.5.0 → 3.5.1
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.
@@ -21,8 +21,7 @@ module Cachetastic
|
|
21
21
|
end # get
|
22
22
|
|
23
23
|
def set(key, value, expiry_time = configatron.cachetastic.defaults.default_expiry) # :nodoc:
|
24
|
-
|
25
|
-
connection.set(transform_key(key), marshal(so))
|
24
|
+
connection.setex(transform_key(key), expiry_time, marshal(value))
|
26
25
|
return value
|
27
26
|
end # set
|
28
27
|
|
data/lib/cachetastic/version.rb
CHANGED
@@ -154,7 +154,7 @@ describe Cachetastic::Adapters do
|
|
154
154
|
CarCache.get(:bmw).should_not be_nil
|
155
155
|
end
|
156
156
|
|
157
|
-
unless
|
157
|
+
unless ["Memcached", "Redis"].include?(adapter)
|
158
158
|
it 'should set an object into the cache with an expiry' do
|
159
159
|
CarCache.get(:bmw).should be_nil
|
160
160
|
CarCache.set(:bmw, 'Beamer!', 1)
|