chore(deps): Bump moka from 0.12.4 to 0.12.5 (#1158)

Bumps [moka](https://github.com/moka-rs/moka) from 0.12.4 to 0.12.5.
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/moka-rs/moka/blob/main/CHANGELOG.md">moka's
changelog</a>.</em></p>
<blockquote>
<h2>Version 0.12.5</h2>
<h3>Added</h3>
<ul>
<li>Added support for a plain LRU (Least Recently Used) eviction policy
(<a
href="https://redirect.github.com/moka-rs/moka/issues/390">#390</a>[gh-pull-0390]):
<ul>
<li>The LRU policy is enabled by calling the
<code>eviction_policy</code> method of the cache
builder with a policy obtained by <code>EvictionPolicy::lru</code>
function.</li>
<li>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.)</li>
<li>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.</li>
<li>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.</li>
</ul>
</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="b5560df8c8"><code>b5560df</code></a>
Merge pull request <a
href="https://redirect.github.com/moka-rs/moka/issues/390">#390</a> from
moka-rs/lru-policy</li>
<li><a
href="27dd941d37"><code>27dd941</code></a>
Tweak some doc comments</li>
<li><a
href="afc8c6b6ac"><code>afc8c6b</code></a>
Update the change log</li>
<li><a
href="e11a6e1f07"><code>e11a6e1</code></a>
Bump the version to v0.12.5</li>
<li><a
href="8819287601"><code>8819287</code></a>
Fix typos in the doc</li>
<li><a
href="4ca1595a95"><code>4ca1595</code></a>
Update the change log</li>
<li><a
href="34cc03bcb0"><code>34cc03b</code></a>
Support the plain LRU policy</li>
<li><a
href="b32f05b3fb"><code>b32f05b</code></a>
Apply rustfmt</li>
<li><a
href="8ac62ed9c0"><code>8ac62ed</code></a>
Support the plain LRU policy</li>
<li>See full diff in <a
href="https://github.com/moka-rs/moka/compare/v0.12.4...v0.12.5">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=moka&package-manager=cargo&previous-version=0.12.4&new-version=0.12.5)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

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-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

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)


</details>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
This commit is contained in:
dependabot[bot] 2024-01-29 02:58:18 +00:00 committed by GitHub
parent 74c67a3812
commit 441454e411
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

4
Cargo.lock generated
View File

@ -2190,9 +2190,9 @@ dependencies = [
[[package]]
name = "moka"
version = "0.12.4"
version = "0.12.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ad9dc9808102655926a6086abd0b9965ebefd4a39ef0d184f074c34ba5049ec6"
checksum = "b1911e88d5831f748a4097a43862d129e3c6fca831eecac9b8db6d01d93c9de2"
dependencies = [
"async-lock",
"async-trait",