Added the upsert and compute methods for modifying a cached entry
(#370[gh-pull-0370]):
Now the entry or entry_by_ref APIs have the following methods:
and_upsert_with method to insert or update the entry.
and_compute_with method to insert, update, remove or do nothing on the
entry.
and_try_compute_with method, which is similar to above but returns
Result.
Fixed
Raised the version requirement of the quanta from >=0.11.0, <0.12.0 to
>=0.12.2, <0.13.0 to avoid under-measuring the elapsed time on Apple silicon
Macs (#376[gh-pull-0376]).
Due to this under-measurement, cached entries expire sightly later than
expected on macOS arm64.
Commits
9303de3 Merge pull request #376 from moka-rs/quanta-v0.12.2
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 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 from 0.12.2 to 0.12.3.
Changelog
Sourced from moka's changelog.
Commits
9303de3
Merge pull request #376 from moka-rs/quanta-v0.12.23c2e280
Update the change log087cf69
Raise the minimum version of thequanta
tov0.12.2
94a3558
Merge pull request #375 from moka-rs/ensure-waiter-map-is-empty-after-testa5d0674
Compute API - Update the tests to ensure the internal waiter mapcc36d72
Merge pull request #370 from moka-rs/compute-api472addc
Compute API - Brush up the documentsaee7ebe
Compute API - Change the return type of the entryand_compute_with
and6eff2d3
Compute API - Change the compute family methods to record a read3db436f
Bump the version to v0.12.3Dependabot 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