cache_utils 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/cache_utils/model.rb +1 -1
- data/lib/cache_utils/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d9a6c25fdbb65163d578dcefc7110e6785358f7d
|
4
|
+
data.tar.gz: ddcac381586fcff4cf6126fd799066a3e8af2aec
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8318298669f27232bcb78297ee7403277cc1d7c268109552c323c2a99c2e5bd81d69d204c04b89e5cde438bc15e65481a18905bde99709b7e0e1212c790aabf4
|
7
|
+
data.tar.gz: ea3781550309502dfc8236240577e2c36237d93a9a5d67f8df73f613f45abf400b1e2003f18d2531975cf4d58e6e27cad6ca526b12841dfb6f6d55e99b6a4eb1
|
data/lib/cache_utils/model.rb
CHANGED
@@ -17,7 +17,7 @@ module CacheUtils
|
|
17
17
|
end
|
18
18
|
|
19
19
|
def purge_cache
|
20
|
-
$redis.del(*($redis.scan_each(match: custom_cache_key + '*') + [self.class.cache_key]))
|
20
|
+
$redis.del(*($redis.scan_each(match: custom_cache_key + '*').to_a + [self.class.cache_key]))
|
21
21
|
Appsignal.increment_counter('cache_purge', 1) if defined?(Appsignal)
|
22
22
|
end
|
23
23
|
end
|
data/lib/cache_utils/version.rb
CHANGED