cachetastic 3.5.0 → 3.5.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -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
- so = Cachetastic::Cache::StoreObject.new(key, value, expiry_time.from_now)
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
 
@@ -1,3 +1,3 @@
1
1
  module Cachetastic
2
- VERSION = "3.5.0"
2
+ VERSION = "3.5.1"
3
3
  end
@@ -154,7 +154,7 @@ describe Cachetastic::Adapters do
154
154
  CarCache.get(:bmw).should_not be_nil
155
155
  end
156
156
 
157
- unless adapter == "Memcached"
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)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cachetastic
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.5.0
4
+ version: 3.5.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: