libmemcached_store 0.8.3 → 0.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/active_support/cache/libmemcached_store.rb +5 -1
- data/lib/memcached/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2d87f1bd5de0cc28f40c93a4150466fb4861d779
|
4
|
+
data.tar.gz: b7270e1c498201ab93354f799b41bb2d0de560fe
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 25681bfd4c7fc16fbae4fd306df48597fb1f5e6c83151114e1c46579bd4b7df615f0fff346fd8a2c236fb3f30bf1767c90bbbe0777c6005903dd0f185289f42b
|
7
|
+
data.tar.gz: ed9a4e4d2f3b7b8671f35e371be419c59d2ae6b5879ce377797baa0f54582ea13e48b659e69860aaad75ba7da2d85533bc4bfa2b7e189d49928fcff442014976
|
@@ -329,7 +329,7 @@ module ActiveSupport
|
|
329
329
|
def instrument(operation, key, options=nil)
|
330
330
|
log(operation, key, options)
|
331
331
|
|
332
|
-
if
|
332
|
+
if instrument?
|
333
333
|
payload = { :key => key }
|
334
334
|
payload.merge!(options) if options.is_a?(Hash)
|
335
335
|
ActiveSupport::Notifications.instrument("cache_#{operation}.active_support", payload){ yield(payload) }
|
@@ -338,6 +338,10 @@ module ActiveSupport
|
|
338
338
|
end
|
339
339
|
end
|
340
340
|
|
341
|
+
def instrument?
|
342
|
+
ActiveSupport::VERSION::MAJOR == 3 ? ActiveSupport::Cache::Store.instrument : true
|
343
|
+
end
|
344
|
+
|
341
345
|
def log(operation, key, options=nil)
|
342
346
|
return unless !silence? && logger && logger.debug?
|
343
347
|
logger.debug("Cache #{operation}: #{key}#{options.blank? ? "" : " (#{options.inspect})"}")
|
data/lib/memcached/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: libmemcached_store
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.9.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Christopher Cocchi-Perrier
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date:
|
13
|
+
date: 2017-10-24 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: memcached
|
@@ -179,7 +179,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
179
179
|
requirements:
|
180
180
|
- - ">="
|
181
181
|
- !ruby/object:Gem::Version
|
182
|
-
version:
|
182
|
+
version: 2.0.0
|
183
183
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
184
184
|
requirements:
|
185
185
|
- - ">="
|
@@ -187,7 +187,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
187
187
|
version: '0'
|
188
188
|
requirements: []
|
189
189
|
rubyforge_project:
|
190
|
-
rubygems_version: 2.
|
190
|
+
rubygems_version: 2.5.1
|
191
191
|
signing_key:
|
192
192
|
specification_version: 4
|
193
193
|
summary: ActiveSupport 3+ cache store for the C-based libmemcached client
|