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 +4 -4
- data/README.md +1 -1
- data/lib/active_support/cache/memcached_store.rb +4 -2
- data/lib/memcached_store/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 875c5a78872e62c674db76a3c085530c15ca88fa
|
4
|
+
data.tar.gz: 5502993786ce2861e0864b2740e5f2c6b2648652
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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.
|
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
|
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.
|
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-
|
14
|
+
date: 2017-06-27 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: activesupport
|