memcached_store 1.1.0 → 1.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a346167d61e3e802e7ce5d1c45b9ba225e6100e2
4
- data.tar.gz: 33f531223bd3e02d5a760078975243777a83a6fc
3
+ metadata.gz: 875c5a78872e62c674db76a3c085530c15ca88fa
4
+ data.tar.gz: 5502993786ce2861e0864b2740e5f2c6b2648652
5
5
  SHA512:
6
- metadata.gz: 02c614d50425a3287076e9947a951ba836dde85eb43214f42c42a94e07fac1b8b3bf902f57dafdf247b6d14f08cdc11fa379b847ad96fd56d70d91866fb2c0f3
7
- data.tar.gz: 7f08c3cd9c8ed9f0d12af91d4a935eeaab25e88a6c78b3a5450a708f768eccdadbe29e8e32aba46b6e974f184708d5320b887745c106fde98cc4acb5c8bb5a18
6
+ metadata.gz: 72120ed1707ef1f7d94eb48d87c90c225c685a00d7ff8d471b7e53249b154bf1ee3d4a98a091e829b5b6e3f0a29177e2dc93f71d3d6c45f5a52536fd6577a498
7
+ data.tar.gz: 20a14d03c0326194172c3e440af98619559180440b95c063b4ef0b4b936d85068e951fd194cd05e005c2466607d03f41efcc88bb8b5b652d106a2a9d95b5b6f1
data/README.md CHANGED
@@ -40,7 +40,7 @@ config.cache_store = :memcached_store,
40
40
 
41
41
  # for snappy store
42
42
  config.cache_store = :memcached_snappy_store,
43
- Memcached::Rails.new(servers: ['memcached1.foo.com', 'memcached2.foo.com'])
43
+ Memcached.new(['memcached1.foo.com', 'memcached2.foo.com'])
44
44
  ```
45
45
 
46
46
  ## Benchmarks
@@ -23,8 +23,10 @@ module ActiveSupport
23
23
 
24
24
  super(options)
25
25
 
26
- if addresses.first.respond_to?(:get)
26
+ if addresses.first.is_a?(Memcached)
27
27
  @data = addresses.first
28
+ raise "Memcached::Rails is no longer supported, "\
29
+ "use a Memcached instance instead" if @data.is_a?(Memcached::Rails)
28
30
  else
29
31
  mem_cache_options = options.dup
30
32
  servers = mem_cache_options.delete(:servers)
@@ -239,7 +241,7 @@ module ActiveSupport
239
241
  expires_in = options[:expires_in].to_i
240
242
  if expires_in > 0 && !options[:raw]
241
243
  # Set the memcache expire a few minutes in the future to support race condition ttls on read
242
- expires_in += 5.minutes
244
+ expires_in += 5.minutes.to_i
243
245
  end
244
246
  expires_in
245
247
  end
@@ -1,4 +1,4 @@
1
1
  # encoding: utf-8
2
2
  module MemcachedStore
3
- VERSION = "1.1.0"
3
+ VERSION = "1.1.1"
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: memcached_store
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Camilo Lopez
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2017-05-08 00:00:00.000000000 Z
14
+ date: 2017-06-27 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: activesupport