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.7 #664

Closed
wants to merge 1 commit into from

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github May 13, 2024

Updates the requirements on moka to permit the latest version.

Changelog

Sourced from moka's changelog.

Version 0.12.7

Changed

  • Ensure a single call to run_pending_tasks to evict as many entries as possible from the cache (#417[gh-pull-0417]).

Version 0.12.6

Fixed

  • Fixed a bug in future::Cache that pending run_pending_tasks calls may cause infinite busy loop in an internal schedule_write_op method (#412[gh-issue-0412]):
    • This bug was introduced in v0.12.0 when the background threads were removed from future::Cache.
    • This bug can occur when run_pending_task method is called by user code while cache is receiving a very high number of concurrent cache write operations. (e.g. insert, get_with, invalidate etc.)
    • When it occurs, the schedule_write_op method will be spinning in a busy loop forever, causing high CPU usage and all other async tasks to be starved.

Changed

  • Upgraded async-lock crate used by future::Cache from v2.4 to the latest v3.3.

Version 0.12.5

Added

  • Added support for a plain LRU (Least Recently Used) eviction policy (#390[gh-pull-0390]):
    • The LRU policy is enabled by calling the eviction_policy method of the cache builder with a policy obtained by EvictionPolicy::lru function.
    • The default eviction policy remains the TinyLFU (Tiny, Least Frequently Used) as it maintains better hit rate than LRU for most use cases. TinyLFU combines LRU eviction policy and popularity-based admission policy. A probabilistic data structure is used to estimate historical popularity of both hit and missed keys. (not only the keys currently in the cache.)
    • However, some use cases may prefer LRU policy over TinyLFU. An example is recency biased workload such as streaming data processing. LRU policy can be used for them to achieve better hit rate.
    • Note that we are planning to add an adaptive eviction/admission policy called Window-TinyLFU in the future. It will adjust the balance between recency and frequency based on the current workload.

... (truncated)

Commits
  • c56d646 Merge pull request #417 from moka-rs/evict-more-entries-at-once
  • ccb285b Tweak some source code comments
  • dfbbe3f Make a single call to run_pending_tasks to evict as many entries as
  • c6a4d4b Make a single call to run_pending_tasks to evict as many entries as
  • 91c8497 Update the change log
  • b59b938 Update the change log
  • b9923f8 Bump the version to v0.12.7
  • 364567e Make run_pending_tasks to evict more entries from the cache at once
  • 3b9adc3 Make run_pending_tasks to evict more entries from the cache at once
  • c7f67cd Make run_pending_tasks to evict more entries from the cache at once
  • 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.7)

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

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file rust Pull requests that update Rust code labels May 13, 2024
Copy link
Contributor Author

dependabot bot commented on behalf of github Jul 8, 2024

Superseded by #670.

@dependabot dependabot bot closed this Jul 8, 2024
@dependabot dependabot bot deleted the dependabot/cargo/moka-0.12.7 branch July 8, 2024 15:39
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