cache_sweeper 0.1.0 → 1.0.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 392da6714d4f37e50e0defdcde8bb441ea64409dc61e05bb041086048d317146
4
- data.tar.gz: ef6299ad81c1828237b3c3b66c4d6b331df3af6f86d54d2d71fa066a7e5c5fde
3
+ metadata.gz: df8cff7c1afc1d32a9b612913afa5cedd388cbd98f80f238f83fe83b9d9c4e36
4
+ data.tar.gz: 785df575a43f933c0653acccddb6124bb209847858fb73772caab1b3145dc530
5
5
  SHA512:
6
- metadata.gz: 8d8aa522bf13d117ec228c7c4028fef58953d2dc7b2e002a5b51f273938df6e9ea7f09c8422dee558efb239e01187b63eaa3064a1f8d4623450d1cf94d07123d
7
- data.tar.gz: 8f230984e6fcdf49af9aaa33cac2714d88b6ab1111d8881b0031801db5a53977649fed23123060cbee08545eb4b3634a03996460011cd9a76415544a8f0432cc
6
+ metadata.gz: de1033a763677f9433f93c2c9aab9d06526dc45ec903bbcd0247f0b6c6063792ca17a4ba3c79d07f9aeb2c97b2909d92bce54c89392a04ec7bfab8e1dfc4e04e
7
+ data.tar.gz: 5c61017d97d7368b19c7c3ad5a4206273734e9bc6ee25f003861c2e9cac64f9ae9a1466742f13984b406eb9c4fb21b874f5a346f029c0e6e1ed31277e1cbd278
data/CHANGELOG.md ADDED
@@ -0,0 +1,21 @@
1
+ # Changelog
2
+
3
+ ## 1.0.0
4
+
5
+ Complete rewrite with a new API. Nothing from 0.x is carried over.
6
+
7
+ - `watch Model, only:, on:, if:, unless:, delivery:, queue: { |record| keys }` replaces `watch` with
8
+ `attributes:`, `keys:`, association names and class-name model inference.
9
+ - `delivery :inline | :batched | :async` replaces the `trigger` × `mode` combinations. `:inline` is the default.
10
+ - Batching runs on the Rails executor, covering requests, jobs and ActionCable. `CacheSweeperFlushMiddleware` is gone.
11
+ Batches flush early at `max_pending_keys`, and async keys are enqueued in bulk as jobs of `batch_size` keys.
12
+ - Async deletion goes through ActiveJob (`CacheSweeper::DeleteJob`) instead of a Sidekiq worker.
13
+ - Keys expand like `Rails.cache` keys, so records and composite keys work.
14
+ - Sweepers reload with application code in development.
15
+ - Logging moved to `ActiveSupport::Notifications` and a `LogSubscriber`. Errors go to `Rails.error`.
16
+ - Depends on ActiveRecord, ActiveJob and ActiveSupport 7.1+ instead of all of Rails and `request_store`.
17
+ - Requires Ruby 3.3+.
18
+
19
+ ## 0.1.1
20
+
21
+ - Initial release.