omjadas / hudsucker

Intercepting HTTP/S proxy
https://crates.io/crates/hudsucker
Apache License 2.0
211 stars 37 forks source link

chore(deps): update moka requirement from 0.7.0 to 0.8.0 #25

Closed dependabot[bot] closed 2 years ago

dependabot[bot] commented 2 years ago

Updates the requirements on moka to permit the latest version.

Changelog

Sourced from moka's changelog.

Version 0.8.0

As a part of stabilizing the cache API, the following cache methods have been renamed:

  • get_or_insert_with(K, F)get_with(K, F)
  • get_or_try_insert_with(K, F)try_get_with(K, F)

Old methods are still available but marked as deprecated. They will be removed in a future version.

Also policy method was added to all caches and blocking method was added to future::Cache. They return a Policy struct or BlockingOp struct respectively. Some uncommon cache methods were moved to these structs, and old methods were removed without deprecating.

Please see #105[gh-pull-0105] for the complete list of the renamed and moved methods.

Changed

  • API stabilization. (Smaller core cache API, shorter names for common methods) (#105[gh-pull-0105])
  • Performance related:
    • Improve performance of get_with and try_get_with. (#88[gh-pull-0088])
    • Avoid to calculate the same hash twice in get, get_with, insert, invalidate, etc. (#90[gh-pull-0090])
  • Update the minimum versions of dependencies:
    • crossbeam-channel to v0.5.4. (#100[gh-pull-0100])
    • scheduled-thread-pool to v0.2.5. (#103[gh-pull-0103])
    • (dev-dependency) skeptic to v0.13.5. (#104[gh-pull-0104])

Added

Experimental Additions

  • Add a synchronous cache moka::dash::Cache, which uses dashmap::DashMap as the internal storage. (#99[gh-pull-0099])
  • Add iterator to moka::dash::Cache. (#101[gh-pull-0101])

Please note that the above additions are highly experimental and their APIs will be frequently changed in next few releases.

Version 0.7.2

The minimum supported Rust version (MSRV) is now 1.51.0 (2021-03-25).

Fixed

  • Addressed a memory utilization issue that will get worse when keys have hight cardinality (#72[gh-issue-0072]):

... (truncated)

Commits
  • 5015431 Merge pull request #105 from moka-rs/api-change1
  • fd4a7a2 Brush up the doc for dash::Cache
  • 9cc04c5 API stabilization: Add block method to future::Cache
  • 3ca3928 API stabilization: Add block method to future::Cache
  • dd4e627 Fix a typo
  • 38ab703 API stabilization: Add block method to future::Cache
  • babde05 Rename get_if_present method of dash::Cache to get
  • 707f5a6 Update the CHANGELOG and README for v0.8.0
  • 99268b3 API stabilization: Prefer shorter name for common methods, and add
  • fec6dff Merge pull request #91 from moka-rs/better-cht-integration
  • 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 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)