smart_cache_store 0.3.1 → 1.0.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/smart_mem_cache.rb +2 -2
- data/lib/smart_cache_store/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ed085fd68dc9527609bc2cf5cc538b40e902638155b202e485dac2db92f5c27b
|
4
|
+
data.tar.gz: b2281c651f5fbfd6f9c3c4feaaeafd7246075a1f001fe9a6d69ccc0af5aebc2a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 403228a667e55a3eecf3f619df9d6e30d26be0da899323396429d33d58e9adf6ddc6f90dc7b9afd6100d3dc9543031be72266c72e3b18a45b6fb59ccdd70c9ad
|
7
|
+
data.tar.gz: 0c6a0c160ffbec240e190ac032f27dd6dbb7ad7924e0c9b031693c962af98dc17727fe4787cd2825b73ae1464611d72479554ef14bc386345f75f23ce899b307
|
@@ -51,7 +51,7 @@ module ActiveSupport
|
|
51
51
|
options = merged_options(options)
|
52
52
|
instrument(:increment, name, amount: amount) do
|
53
53
|
rescue_error_with nil do
|
54
|
-
@data.
|
54
|
+
@data.with { |c| c.incr(normalize_key(name, options), amount, options[:expires_in], amount) }
|
55
55
|
end
|
56
56
|
end
|
57
57
|
end
|
@@ -60,7 +60,7 @@ module ActiveSupport
|
|
60
60
|
options = merged_options(options)
|
61
61
|
instrument(:decrement, name, amount: amount) do
|
62
62
|
rescue_error_with nil do
|
63
|
-
@data.
|
63
|
+
@data.with { |c| c.decr(normalize_key(name, options), amount, options[:expires_in], 0) }
|
64
64
|
end
|
65
65
|
end
|
66
66
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: smart_cache_store
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- thomas morgan
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-10-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '6.1'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
26
|
+
version: '6.1'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: connection_pool
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|