Add optionally_get_with method to sync and future caches
(#187[gh-pull-0187], by [@LMJW][gh-LMJW]):
It is similar to try_get_with but takes an init closure/future returning an
Option<V> instead of Result<V, E>.
Add by_ref version of API for get_with, optionally_get_with, and
try_get_with of sync and future caches (#190[gh-pull-0190], by
[@LMJW][gh-LMJW]):
They are similar to the non-by_ref versions but take a reference of the key
instead of an owned key. If the key does not exist in the cache, the key will
be cloned to create new entry in the cache.
Changed
Changed the CI to run Linux AArch64 tests on real hardware using Cirrus CI.
(#180[gh-pull-0180], by [@ClSlaid][gh-ClSlaid])
Fixed
Fix a typo in the documentation. (#189[gh-pull-0189], by [@Swatinem][gh-Swatinem])
Commits
ee57915 Merge pull request #192 from moka-rs/by-ref-part2
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)
Bumps moka from 0.9.4 to 0.9.5.
Changelog
Sourced from moka's changelog.
Commits
ee57915
Merge pull request #192 from moka-rs/by-ref-part244e68f5
Add 'by_ref' apie68d8d9
Merge pull request #191 from moka-rs/prepare-0.9.5-2a67c88a
Update the README and CHANGELOG23f4524
Fix Clippy warnings8d0e18c
Merge pull request #190 from LMJW/get-by-ref457c38f
Add 'by_ref' apicbd854d
Merge pull request #189 from Swatinem/patch-1314ea17
Fix future typob5b2ef4
Merge pull request #188 from moka-rs/prepare-0.9.5Dependabot 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)