Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update dependency laminas/laminas-cache-storage-adapter-memory to v3 (master) - autoclosed #110

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Aug 9, 2024

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
laminas/laminas-cache-storage-adapter-memory ^2.0 -> ^3.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

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot changed the title Update dependency laminas/laminas-cache-storage-adapter-memory to v3 (master) Update dependency laminas/laminas-cache-storage-adapter-memory to v3 (master) - autoclosed Aug 15, 2024
@renovate renovate bot closed this Aug 15, 2024
@renovate renovate bot deleted the renovate/master-laminas-laminas-cache-storage-adapter-memory-3.x branch August 15, 2024 16:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

0 participants