kredis 0.3.1 → 0.4.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 +4 -4
- data/lib/kredis/attributes.rb +12 -12
- data/lib/kredis/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 0c7614f548dde6852fd7e654215ba56f103fec5ac7ad6ae477fe2621f3b9964a
|
|
4
|
+
data.tar.gz: a023026462ec8a09f1e26550ce56abaeb95b1f0582665787cda48ef91e9048d1
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e3755bc5be9370676ac5b2a4a6100a26d0ed09b1248d87114911020ec1b9eb6ab094d25ec6686478069add02197d5188f59edcab04ccc69fed9bb80d1db9966f
|
|
7
|
+
data.tar.gz: 6f97f9ad814700b69b5663697add1f4b2d3468d05752c053c883ca0e8d93703b91af06f6a2593ee6ba79835435663c51c78cd17df32dafb1d7efc666150e77f6
|
data/lib/kredis/attributes.rb
CHANGED
|
@@ -6,20 +6,20 @@ module Kredis::Attributes
|
|
|
6
6
|
kredis_connection_with __method__, name, key, config: config, after_change: after_change
|
|
7
7
|
end
|
|
8
8
|
|
|
9
|
-
def kredis_string(name, key: nil, config: :shared, after_change: nil)
|
|
10
|
-
kredis_connection_with __method__, name, key, config: config, after_change: after_change
|
|
9
|
+
def kredis_string(name, key: nil, config: :shared, after_change: nil, expires_in: nil)
|
|
10
|
+
kredis_connection_with __method__, name, key, config: config, after_change: after_change, expires_in: expires_in
|
|
11
11
|
end
|
|
12
12
|
|
|
13
|
-
def kredis_integer(name, key: nil, config: :shared, after_change: nil)
|
|
14
|
-
kredis_connection_with __method__, name, key, config: config, after_change: after_change
|
|
13
|
+
def kredis_integer(name, key: nil, config: :shared, after_change: nil, expires_in: nil)
|
|
14
|
+
kredis_connection_with __method__, name, key, config: config, after_change: after_change, expires_in: expires_in
|
|
15
15
|
end
|
|
16
16
|
|
|
17
|
-
def kredis_decimal(name, key: nil, config: :shared, after_change: nil)
|
|
18
|
-
kredis_connection_with __method__, name, key, config: config, after_change: after_change
|
|
17
|
+
def kredis_decimal(name, key: nil, config: :shared, after_change: nil, expires_in: nil)
|
|
18
|
+
kredis_connection_with __method__, name, key, config: config, after_change: after_change, expires_in: expires_in
|
|
19
19
|
end
|
|
20
20
|
|
|
21
|
-
def kredis_datetime(name, key: nil, config: :shared, after_change: nil)
|
|
22
|
-
kredis_connection_with __method__, name, key, config: config, after_change: after_change
|
|
21
|
+
def kredis_datetime(name, key: nil, config: :shared, after_change: nil, expires_in: nil)
|
|
22
|
+
kredis_connection_with __method__, name, key, config: config, after_change: after_change, expires_in: expires_in
|
|
23
23
|
end
|
|
24
24
|
|
|
25
25
|
def kredis_flag(name, key: nil, config: :shared, after_change: nil)
|
|
@@ -30,16 +30,16 @@ module Kredis::Attributes
|
|
|
30
30
|
end
|
|
31
31
|
end
|
|
32
32
|
|
|
33
|
-
def kredis_float(name, key: nil, config: :shared, after_change: nil)
|
|
34
|
-
kredis_connection_with __method__, name, key, config: config, after_change: after_change
|
|
33
|
+
def kredis_float(name, key: nil, config: :shared, after_change: nil, expires_in: nil)
|
|
34
|
+
kredis_connection_with __method__, name, key, config: config, after_change: after_change, expires_in: expires_in
|
|
35
35
|
end
|
|
36
36
|
|
|
37
37
|
def kredis_enum(name, key: nil, values:, default:, config: :shared, after_change: nil)
|
|
38
38
|
kredis_connection_with __method__, name, key, values: values, default: default, config: config, after_change: after_change
|
|
39
39
|
end
|
|
40
40
|
|
|
41
|
-
def kredis_json(name, key: nil, config: :shared, after_change: nil)
|
|
42
|
-
kredis_connection_with __method__, name, key, config: config, after_change: after_change
|
|
41
|
+
def kredis_json(name, key: nil, config: :shared, after_change: nil, expires_in: nil)
|
|
42
|
+
kredis_connection_with __method__, name, key, config: config, after_change: after_change, expires_in: expires_in
|
|
43
43
|
end
|
|
44
44
|
|
|
45
45
|
def kredis_list(name, key: nil, typed: :string, config: :shared, after_change: nil)
|
data/lib/kredis/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: kredis
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.4.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Kasper Timm Hansen
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2021-09-
|
|
12
|
+
date: 2021-09-15 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: activesupport
|