Skip to content

Conversation

@renovate
Copy link
Contributor

@renovate renovate bot commented Jul 10, 2024

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

Compare Source

Release Notes for 3.0.0

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. 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
RFC
Enhancement
BC Break,Bug,Enhancement
BC Break,Bug

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.


  • If you want to rebase/retry this PR, check this box

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

@renovate renovate bot added the renovate label Jul 10, 2024
@renovate renovate bot force-pushed the renovate/laminas-laminas-cache-storage-adapter-memory-3.x branch from 6a4d766 to 3096259 Compare August 19, 2024 09:56
| datasource | package                                      | from  | to    |
| ---------- | -------------------------------------------- | ----- | ----- |
| packagist  | laminas/laminas-cache-storage-adapter-memory | 2.3.0 | 3.0.0 |
@renovate renovate bot force-pushed the renovate/laminas-laminas-cache-storage-adapter-memory-3.x branch from 3096259 to cb10aea Compare November 12, 2024 09:33
@renovate renovate bot changed the title Update dependency laminas/laminas-cache-storage-adapter-memory to v3 Update dependency laminas/laminas-cache-storage-adapter-memory to v3 - autoclosed Nov 27, 2024
@renovate renovate bot closed this Nov 27, 2024
@renovate renovate bot deleted the renovate/laminas-laminas-cache-storage-adapter-memory-3.x branch November 27, 2024 07:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant