stockpile_cache 1.3.0 → 1.3.1
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/CHANGELOG.md +4 -0
- data/Gemfile.lock +1 -1
- data/README.md +6 -0
- data/lib/stockpile/constants.rb +1 -1
- data/lib/stockpile/yaml_redis_configuration.rb +5 -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: 6ad32124765de7dec002510817eba80abf37eb7e42403de931e6c74cc9178842
|
|
4
|
+
data.tar.gz: b0242fe4109a69ce917997181ec76b00b47c0cb8c02794d88edf75276b5d62fc
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1540e626290d9209a0820c8a8f9830f9bc14cf8d10569bf6279b4369a0da35843d0a19ef99f90e0ab21de31c3653a24d5658285e410085aeda4e2d7209658cc6
|
|
7
|
+
data.tar.gz: 7bf019df445a2a1acd3a70d1400a65d06b09056a35ea287ea3b469fd7fb65753530d47cf2105a93f8f6b7dc1348409ba5ba5680464ce46b3d897fd55c7a00503
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
|
@@ -91,6 +91,12 @@ end
|
|
|
91
91
|
| `db` | (optional) Name of the Redis database to cache value in. Defaults to `:default` |
|
|
92
92
|
| `&block` | Block of code to execute; it's return value will be stored in cache. |
|
|
93
93
|
|
|
94
|
+
To expire your cache immediately run:
|
|
95
|
+
|
|
96
|
+
```
|
|
97
|
+
Stockpile.expire_cached(key: 'meaning_of_life')
|
|
98
|
+
```
|
|
99
|
+
|
|
94
100
|
### Multiple Database
|
|
95
101
|
Stockpile comes with a support for multiple databases. A word of caution: unless
|
|
96
102
|
you have very good reason to run multiple databases within single instance of
|
data/lib/stockpile/constants.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: stockpile_cache
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.3.
|
|
4
|
+
version: 1.3.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- ConvertKit, LLC
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2020-
|
|
11
|
+
date: 2020-06-01 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: connection_pool
|