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

build(deps): update moka requirement from 0.11.2 to 0.12.4 #650

Closed
wants to merge 1 commit into from

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Jan 22, 2024

Updates the requirements on moka to permit the latest version.

Changelog

Sourced from moka's changelog.

Version 0.12.4

Fixed

  • Ensure crossbeam-epoch to run GC when dropping a cache (#384[gh-pull-0384]):
    • crossbeam-epoch crate provides an epoch-based memory reclamation scheme for concurrent data structures. It is used by Moka cache to safely drop cached entries while they are still being accessed by other threads.
    • crossbeam-epoch does the best to reclaim memory (drop the entries evicted from the cache) when the epoch is advanced. However, it does not guarantee that memory will be reclaimed immediately after the epoch is advanced. This means that entries can remain in the memory for a while after the cache is dropped.
    • This fix ensures that, when a cache is dropped, the epoch is advanced and crossbeam-epoch's thread local buffers are flushed, helping to reclaim memory immediately.
    • Note that there are still chances that some entries remain in the memory for a while after a cache is dropped. We are looking for alternatives to crossbeam-epoch to improve this situation (e.g. #385[gh-issue-0385]).

Added

  • Added an example for reinserting expired entries to the cache. (#382[gh-pull-0382])

Version 0.12.3

Added

  • Added the upsert and compute methods for modifying a cached entry (#370[gh-pull-0370]):
    • Now the entry and entry_by_ref APIs have the following methods:
      • and_upsert_with method to insert or update the entry.
      • and_compute_with method to insert, update, remove or do nothing on the entry.
      • and_try_compute_with method, which is similar to above but returns Result.

Fixed

  • Raised the version requirement of the quanta from >=0.11.0, <0.12.0 to >=0.12.2, <0.13.0 to avoid under-measuring the elapsed time on Apple silicon Macs (#376[gh-pull-0376]).
    • Due to this under-measurement, cached entries on macOS arm64 can expire sightly later than expected.

Version 0.12.2

Fixed

... (truncated)

Commits
  • 2e904db Merge pull request #386 from moka-rs/prepare-0.12.4
  • a8bace7 Update the version in some doc comments
  • 1c1d32e Merge pull request #387 from moka-rs/stabilize-flaky-drop-cache-test
  • 865c680 CI: Stabilize ensure_gc_runs_when_dropping_cache test for sync::Cache
  • 22a9944 CI: Stabilize ensure_gc_runs_when_dropping_cache test for sync::Cache
  • 8439fb9 Update the change log
  • 521193a Merge pull request #382 from moka-rs/reinsert-example
  • 46c5f11 CI: Disable an example reinsert_expired_entries_sync when testing
  • 81477d7 CI: Disable an example reinsert_expired_entries_sync when testing
  • b3fa860 CI: Disable an example reinsert_expired_entries_sync when testing
  • Additional commits viewable in compare view

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Updates the requirements on [moka](https://github.com/moka-rs/moka) to permit the latest version.
- [Changelog](https://github.com/moka-rs/moka/blob/main/CHANGELOG.md)
- [Commits](moka-rs/moka@v0.11.2...v0.12.4)

---
updated-dependencies:
- dependency-name: moka
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file rust Pull requests that update Rust code labels Jan 22, 2024
Copy link
Contributor Author

dependabot bot commented on behalf of github Jan 29, 2024

Superseded by #651.

@dependabot dependabot bot closed this Jan 29, 2024
@dependabot dependabot bot deleted the dependabot/cargo/moka-0.12.4 branch January 29, 2024 15:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file rust Pull requests that update Rust code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants