memcached_store 1.1.1 → 1.2.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/memcached_store.rb +2 -0
- data/lib/memcached_store/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e49987a84d92c00bdc0140eb182b55a7a928f1ed
|
4
|
+
data.tar.gz: 1a9788d127ef7dbf156c261316f39a1fe90c778c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7d1d23e7dbbce68a02bba13ab9a920b834044c2bff3b83497bb723f4b3d0c7a8d31074a47e8b5eb4440b61bb361670795fe30de76ba825320089b968a8c3ec7c
|
7
|
+
data.tar.gz: b46f2c4de9bd74ff25abd6cdd6ccd986b8df4e99cdc3d9f5294b7ea4d2281c7d6c165bb3fc8629505df4adb9addc1d38f8c9e33c4e9df834ee5275037cac76ff
|
@@ -14,6 +14,7 @@ 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
|
17
18
|
|
18
19
|
def initialize(*addresses)
|
19
20
|
addresses = addresses.flatten
|
@@ -251,6 +252,7 @@ module ActiveSupport
|
|
251
252
|
rescue Memcached::NotFound, Memcached::ConnectionDataExists
|
252
253
|
on_miss
|
253
254
|
rescue Memcached::Error => e
|
255
|
+
@on_error.call(e) if @on_error
|
254
256
|
raise unless @swallow_exceptions
|
255
257
|
logger.warn("memcached error: #{e.class}: #{e.message}") if logger
|
256
258
|
return_value_on_error
|
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.
|
4
|
+
version: 1.2.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: 2017-
|
14
|
+
date: 2017-12-05 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: activesupport
|
@@ -91,7 +91,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
91
91
|
version: '0'
|
92
92
|
requirements: []
|
93
93
|
rubyforge_project:
|
94
|
-
rubygems_version: 2.5.2
|
94
|
+
rubygems_version: 2.5.2.1
|
95
95
|
signing_key:
|
96
96
|
specification_version: 4
|
97
97
|
summary: Plugin-able Memcached adapters to add features (compression, safety)
|