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

chore(deps): bump moka from 0.12.1 to 0.12.2 #2323

Closed
wants to merge 1 commit into from

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Dec 29, 2023

Bumps moka from 0.12.1 to 0.12.2.

Changelog

Sourced from moka's changelog.

Version 0.12.2

Fixed

  • Prevent timing issues in writes that cause inconsistencies between the cache's internal data structures (#348[gh-pull-0348]):
    • One way to trigger the issue is that insert the same key twice quickly, once when the cache is full and a second time when there is a room in the cache.
      • When it occurs, the cache will not return the value inserted in the second call (which is wrong), and the entry_count method will keep returning a non zero value after calling the invalidate_all method (which is also wrong).
  • Now the last access time of a cached entry is updated immediately after the entry is read (#363[gh-pull-0363]):
    • When the time-to-idle of a cache is set, the last access time of a cached entry is used to determine if the entry has been expired.
    • Before this fix, the access time was updated (to the time when it was read) when pending tasks were processed. This delay caused issue that some entries become temporarily unavailable for reads even though they have been accessed recently. And then they will become available again after the pending tasks are processed.
    • Now the last access time is updated immediately after the entry is read. The entry will remain valid until the time-to-idle has elapsed.

Note that both of #348[gh-pull-0348] and #363[gh-pull-0363] were already present in v0.11.x and older versions. However they were less likely to occur because they had background threads to periodically process pending tasks. So there were much shorter time windows for these issues to occur.

Changed

  • Updated the Rust edition from 2018 to 2021. (#339[gh-pull-0339], by [@​nyurik][gh-nyurik])
    • The MSRV remains at Rust 1.65.
  • Changed to use inline format arguments throughout the code, including examples. (#340[gh-pull-0340], by [@​nyurik][gh-nyurik])

Added

  • Added an example for cascading drop triggered by eviction (#350[gh-pull-0350], by [@​peter-scholtens][gh-peter-scholtens])
Commits
  • 46a678b Merge pull request #364 from moka-rs/prepare-v0.12.2
  • cdb0028 Merge pull request #365 from moka-rs/tweak-cascading-drop-example
  • 7d8f64f Fix a Clippy warning
  • cc3bbc3 Update the cascading drop example to be more stable on different platforms
  • e63c842 Merge pull request #350 from peter-scholtens/main
  • 430dca1 Update the change log
  • b0c42ab Update the change log
  • 8e54573 Prepare for v0.12.2 release
  • 1c302a0 Merge branch 'moka-rs:main' into main
  • 4e26b76 Merge pull request #363 from moka-rs/update-access-time-immediately
  • Additional commits viewable in compare view

Dependabot compatibility score

You can trigger a rebase of this PR 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)

Bumps [moka](https://github.com/moka-rs/moka) from 0.12.1 to 0.12.2.
- [Changelog](https://github.com/moka-rs/moka/blob/main/CHANGELOG.md)
- [Commits](moka-rs/moka@v0.12.1...v0.12.2)

---
updated-dependencies:
- dependency-name: moka
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

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 Dec 29, 2023
@scsmithr scsmithr self-assigned this Dec 29, 2023
@scsmithr scsmithr mentioned this pull request Dec 29, 2023
@scsmithr scsmithr closed this in ed384f4 Dec 29, 2023
Copy link
Contributor Author

dependabot bot commented on behalf of github Dec 29, 2023

OK, I won't notify you again about this release, but will get in touch when a new version is available. If you'd rather skip all updates until the next major or minor version, let me know by commenting @dependabot ignore this major version or @dependabot ignore this minor version. You can also ignore all major, minor, or patch releases for a dependency by adding an ignore condition with the desired update_types to your config file.

If you change your mind, just re-open this PR and I'll resolve any conflicts on it.

1 similar comment
Copy link
Contributor Author

dependabot bot commented on behalf of github Dec 29, 2023

OK, I won't notify you again about this release, but will get in touch when a new version is available. If you'd rather skip all updates until the next major or minor version, let me know by commenting @dependabot ignore this major version or @dependabot ignore this minor version. You can also ignore all major, minor, or patch releases for a dependency by adding an ignore condition with the desired update_types to your config file.

If you change your mind, just re-open this PR and I'll resolve any conflicts on it.

@dependabot dependabot bot deleted the dependabot/cargo/moka-0.12.2 branch December 29, 2023 15:56
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.

1 participant