memcached_store 1.2.2 → 2.0.0
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.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a079d5cd404dd9b93e6fad358bc8cfc0653321d1
|
4
|
+
data.tar.gz: cddd7f7356b0baadc7149993de366818fec77d54
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 98b7e22428228d6fabcf36ad364f4f9b119ae1ede6be0e795724ab3989e524ec7ec41e855cc6598a0c6bf6abc00d28bb25c1e679c427948ba69c545b556a777c
|
7
|
+
data.tar.gz: 599a6385c622f6e41a7124d7c27bd7d14754755ffae61035c860989720b57e87fa5a1b5d553ae5b36211c85d3e375c9637fbeda48522d3d68a664abc03b57425
|
@@ -14,7 +14,6 @@ module ActiveSupport
|
|
14
14
|
ESCAPE_KEY_CHARS = /[\x00-\x20%\x7F-\xFF]/n
|
15
15
|
|
16
16
|
attr_accessor :read_only, :swallow_exceptions
|
17
|
-
attr_writer :on_error
|
18
17
|
|
19
18
|
def initialize(*addresses)
|
20
19
|
addresses = addresses.flatten
|
@@ -248,11 +247,14 @@ module ActiveSupport
|
|
248
247
|
rescue Memcached::NotFound, Memcached::ConnectionDataExists
|
249
248
|
on_miss
|
250
249
|
rescue Memcached::Error => e
|
251
|
-
|
250
|
+
logger.warn(
|
251
|
+
"[MEMCACHED_ERROR] swallowed=#{@swallow_exceptions} exception_class=#{e.class} exception_message=#{e.message}"
|
252
|
+
) if logger
|
252
253
|
raise unless @swallow_exceptions
|
253
|
-
logger.warn("memcached error: #{e.class}: #{e.message}") if logger
|
254
254
|
return_value_on_error
|
255
255
|
end
|
256
|
+
|
257
|
+
ActiveSupport.run_load_hooks(:memcached_store)
|
256
258
|
end
|
257
259
|
end
|
258
260
|
end
|
@@ -1,7 +1,9 @@
|
|
1
1
|
module MemcachedStore
|
2
2
|
class Railtie < Rails::Railtie
|
3
3
|
initializer 'memcached_store.configuration' do
|
4
|
-
ActiveSupport
|
4
|
+
ActiveSupport.on_load(:memcached_store) do
|
5
|
+
ActiveSupport::Cache::MemcachedStore.logger ||= Rails.logger
|
6
|
+
end
|
5
7
|
end
|
6
8
|
end
|
7
9
|
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:
|
4
|
+
version: 2.0.0
|
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: 2018-
|
14
|
+
date: 2018-08-07 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: activesupport
|