cache_utils 0.2.6 → 0.2.7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6357bd87358d5e6377f130af908ada99f8a051b8
4
- data.tar.gz: f7ba12337e21f06898bf1ac7f140f89aae2ff5ad
3
+ metadata.gz: 403ec9ad32d6672872f4ad0c3691ef70539635cc
4
+ data.tar.gz: f85a392491b548d5b4b73bd92da2a9395cc4fdc2
5
5
  SHA512:
6
- metadata.gz: ccc0efa17022107f1a78b1ae19782eb713e7a3ddbe9522c2426d203d7c3605c71ed7850dd221fd571a568eebadaf18dd23f1465627b496c10872df14276bddf8
7
- data.tar.gz: e72ded12c889e55534a92dc83edba81713d8f5e8f18c7bf714667a61dc1ff67249723f45cf6e0cd482bab22a56855a0d9a9ee3dcb5b2aad09d600cb24af46218
6
+ metadata.gz: d627375dd84c44c658410b85e697ecda16cf04f1a2de3c47e6014f7bb9d79d44da2eadfee4660f89d2008c95dc5fb97e4fa37ee1da668d5334a75cd163dda666
7
+ data.tar.gz: 1023a1e06a3366c29801e9b5126be1f8d0511d1d57a22cf40e126eccc89f0b8ec0db10d8cb9d625fa0c0fbb95335eb5f06d424821933ddebbba8da2425f29d52
@@ -19,7 +19,7 @@ module CacheUtils
19
19
  def purge_cache
20
20
  class_keys = self.class.cache_key
21
21
  class_keys += extra_class_key if respond_to?(:extra_class_key)
22
- ($redisw || $redis).del(*(($redisr || $redis).scan_each(match: custom_cache_key + '*').to_a + ($redisr || $redis).scan_each(match: class_keys + '*').to_a))
22
+ ($redisw || $redis).del(*($redis.scan_each(match: custom_cache_key + '*').to_a + $redis.scan_each(match: class_keys + '*').to_a))
23
23
  Appsignal.increment_counter('cache_purge', 1) if defined?(Appsignal)
24
24
  end
25
25
  end
@@ -1,3 +1,3 @@
1
1
  module CacheUtils
2
- VERSION = '0.2.6'.freeze
2
+ VERSION = '0.2.7'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cache_utils
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.6
4
+ version: 0.2.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michele Finotto