Slamdunk / phpstan-laminas-framework

Laminas Framework 3 extensions for PHPStan
MIT License
16 stars 10 forks source link

Update dependency laminas/laminas-cache-storage-adapter-memory to v3 #62

Open renovate[bot] opened 1 month ago

renovate[bot] commented 1 month ago

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
laminas/laminas-cache-storage-adapter-memory ^2.3.0 -> ^3.0.0 age adoption passing confidence

Release Notes

laminas/laminas-cache-storage-adapter-memory (laminas/laminas-cache-storage-adapter-memory) ### [`v3.0.0`](https://togithub.com/laminas/laminas-cache-storage-adapter-memory/releases/tag/3.0.0) [Compare Source](https://togithub.com/laminas/laminas-cache-storage-adapter-memory/compare/2.3.0...3.0.0) ##### Release Notes for [3.0.0](https://togithub.com/laminas/laminas-cache-storage-adapter-memory/milestone/10) Backwards incompatible release (major) `laminas-cache-storage-adapter-memory` 3.0.0 is here and finally adds native types **everywhere**, adds support for `psr/cache` and `psr/simple-cache` v2 & v3, supports `laminas/laminas-cache` v4 and introduces an all new metadata and internal persistence logic. The `Memory` adapter had its flaws by juggling with the `memory_limit`. There were a bunch of issues with that behavior, especially since it is impossible to calculate the exact free memory available. For more details, one can check [#​57](https://togithub.com/laminas/laminas-cache-storage-adapter-memory/issues/57). With this version, we are introducing `max_items` which limits the amount of items persisted to the `Memory` adapter (defaults to *unlimited*). Once the `max_items` are exceeding, the adapter automatically removes the oldest entries to make room for new items. ##### Added - Dedicated `Metadata` object for `Memory#getMetadata` - Adds support for `psr/cache` and `psr/simple-cache` v2 & v3 - `Memory` now allows passing a `ClockInterface` via its constructor - `MemoryOptions` now has `max_items` configuration to limit the amount of items to be cached. When the limit exceeds, the adapter automatically drops older items ##### Changed - Memory adapter now supports per-item TTL and thus, the TTL is calculated `on-write` rather than `on-read` - Memory adapter now supports `max_items` option which can be used to limit the amount of items persisted to the cache ##### Removed - `MemoryOptions#setMemoryLimit` , there is no replacement. It is recommended to use the `max_items` option instead - `MemoryOptions#getMemoryLimit`, there is no relacement ##### 3.0.0 - Total issues resolved: **2** - Total pull requests resolved: **4** - Total contributors: **2** ##### renovate - [64: Update dependency laminas/laminas-cache-storage-adapter-test to v4](https://togithub.com/laminas/laminas-cache-storage-adapter-memory/pull/64) thanks to [@​renovate](https://togithub.com/renovate)\[bot] ##### RFC - [63: \[RFC\]: Serialize objects](https://togithub.com/laminas/laminas-cache-storage-adapter-memory/issues/63) thanks to [@​boesing](https://togithub.com/boesing) ##### Enhancement - [61: Bump storage implementation version](https://togithub.com/laminas/laminas-cache-storage-adapter-memory/pull/61) thanks to [@​boesing](https://togithub.com/boesing) ##### BC Break,Bug,Enhancement - [60: Replace `memory&#​95;limit` with `max&#​95;items`](https://togithub.com/laminas/laminas-cache-storage-adapter-memory/pull/60) thanks to [@​boesing](https://togithub.com/boesing) ##### BC Break,Bug - [58: Add support for `laminas/laminas-cache` v4](https://togithub.com/laminas/laminas-cache-storage-adapter-memory/pull/58) thanks to [@​boesing](https://togithub.com/boesing)

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.



Config source: https://github.com/Slamdunk/.github/blob/main/renovate-config.json