leveled_cache 0.1.0 → 0.2.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
  SHA256:
3
- metadata.gz: 0a86654509725147ae338c2043e6d7f8ba9d5df587b2c34cf93a65000c30d10d
4
- data.tar.gz: ca9185afc78fe514d66abb0264cb45031c88c512f9cfec7362dcb65bdcf2881c
3
+ metadata.gz: f597185c59d214c2f6396915db005e211e79f4375a25d058aef938770a722d54
4
+ data.tar.gz: 61587ee3207b34d56253dd9fae2ef9d57bc086613c6df78c41b845b248fd355d
5
5
  SHA512:
6
- metadata.gz: 4a316bcdfee2317c1b63b52660e169bfa5b115b3aed273cb4dea60051f81ff47ce417bf33c44481e6f496bafdfef35a9b5ff406ca8f07c685baa0be8d32dd749
7
- data.tar.gz: 16ef1640ba78fc68f7823bea32bc8278654fa6e4ac5f9af36aba079abc3ab73a99c58e10f471cbcc6c0fea03743b435ec749c46adb8df0d8551a0d5424139546
6
+ metadata.gz: 7d0aec381468a1e2e645b5fb7a5511e0a1eaef2aadb5a136b55a713572dceb9c54a4380a754d27320c783ef60f576982a2a3006f5d8ca73b8b38d943db0c2479
7
+ data.tar.gz: 92dea48382f5b7efd93a4099bec9016c75d2cfce41fa5d8745d6c9e725493d06a7746544b3d058c2a1f269980a1d0488dc40abf4fcfefab6921a3d404f057a54
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [0.2.0] - 2024-02-26
4
+
5
+ - Support `ActiveSupport::Cache.lookup_store`
6
+ - `#write` and `#delete` now return responses from underlying caches
7
+
3
8
  ## [0.1.0] - 2024-02-13
4
9
 
5
10
  - Initial release
data/README.md CHANGED
@@ -47,7 +47,7 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
47
47
 
48
48
  ## Contributing
49
49
 
50
- Bug reports and pull requests are welcome on GitHub at https://github.com/dpirotte/leveled_cache. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/[USERNAME]/activesupport-cache-leveled_proxy/blob/main/CODE_OF_CONDUCT.md).
50
+ Bug reports and pull requests are welcome on GitHub at https://github.com/dpirotte/leveled_cache. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/dpirotte/leveled_cache/blob/main/CODE_OF_CONDUCT.md).
51
51
 
52
52
  ## License
53
53
 
@@ -55,4 +55,4 @@ The gem is available as open source under the terms of the [MIT License](https:/
55
55
 
56
56
  ## Code of Conduct
57
57
 
58
- Everyone interacting in the LeveledCache project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/activesupport-cache-leveled_proxy/blob/main/CODE_OF_CONDUCT.md).
58
+ Everyone interacting in the LeveledCache project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/dpirotte/leveled_cache/blob/main/CODE_OF_CONDUCT.md).
@@ -0,0 +1,7 @@
1
+ # frozen_string_literal: true
2
+
3
+ module ActiveSupport
4
+ module Cache
5
+ LeveledCacheStore = LeveledCache::Store
6
+ end
7
+ end
@@ -125,13 +125,13 @@ module LeveledCache
125
125
  end
126
126
 
127
127
  def write_entry(key, entry, **options)
128
- @caches.each do |cache|
128
+ @caches.map do |cache|
129
129
  cache.write(key, entry, options)
130
130
  end
131
131
  end
132
132
 
133
133
  def delete_entry(key, **options)
134
- @caches.each do |cache|
134
+ @caches.map do |cache|
135
135
  cache.delete(key, options)
136
136
  end
137
137
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module LeveledCache
4
- VERSION = "0.1.0"
4
+ VERSION = "0.2.0"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: leveled_cache
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dave Pirotte
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-02-16 00:00:00.000000000 Z
11
+ date: 2024-02-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -50,6 +50,7 @@ files:
50
50
  - gemfiles/activesupport_7.0.gemfile
51
51
  - gemfiles/activesupport_7.1.gemfile
52
52
  - gemfiles/activesupport_main.gemfile
53
+ - lib/active_support/cache/leveled_cache_store.rb
53
54
  - lib/leveled_cache.rb
54
55
  - lib/leveled_cache/store.rb
55
56
  - lib/leveled_cache/version.rb