booking_locations 0.11.0 → 0.12.0

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: 79b422f442a9e926c075a1399e6095a21e10ca62
4
- data.tar.gz: 54f5b1aef44c03f2b26b7056c60410ddc26e8e57
3
+ metadata.gz: 11c2bf6fa64468a12904432423d7ade486b3b140
4
+ data.tar.gz: c3bcbd47ae678e1d71756d2fae6b57f537681f37
5
5
  SHA512:
6
- metadata.gz: 837e86259ea716276ae2db9d10d1ed92bbf77645903dda0fafd43c24c50ba989e2f8461f5d0d8c480f5532518e4aae05fa1272811c9226a0153f894e0a3cf6a4
7
- data.tar.gz: 2ead219d3d1fd24cc8c9da99d0d84cff5601a1de5d5c37246ac34c904cac2b0097cf3e08259957c27a7b9d0349f4c591ecfb12a92f9f1b8f9bf0a98fb596edbd
6
+ metadata.gz: d8b37ba4369d0e2ca8b569b986370b7dc955343a34b08f63749c91a73a361facd3c3787608e334f8bbe0c63571177b624637ca83be65825363a704f2bfc98347
7
+ data.tar.gz: 1011e6dc0f1dfc8212dfe505785fe845f51cc447551846973912a61f5fc53b18bbea5a1e04a307930a9b9fc07ec9d512f018e19549e20bdb9b87d249289ee4a9
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 0.12.0
2
+
3
+ * Add ability to clear all prefixed cache entries
4
+
1
5
  ## 0.11.0
2
6
 
3
7
  * Add cache key namespacing / prefixing
@@ -1,3 +1,3 @@
1
1
  module BookingLocations
2
- VERSION = '0.11.0'.freeze
2
+ VERSION = '0.12.0'.freeze
3
3
  end
@@ -28,4 +28,8 @@ module BookingLocations
28
28
  end
29
29
  end
30
30
  end
31
+
32
+ def self.clear_cache(prefix = DEFAULT_PREFIX)
33
+ cache.delete_matched(prefix.concat('*'))
34
+ end
31
35
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: booking_locations
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.0
4
+ version: 0.12.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Lovell