-
Notifications
You must be signed in to change notification settings - Fork 39
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
fix(deps): update rust crate moka to 0.12.0 #100
Open
renovate
wants to merge
1
commit into
main
Choose a base branch
from
renovate/moka-0.x
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
renovate
bot
changed the title
Update Rust crate moka to 0.9.6
fix(deps): update rust crate moka to 0.9.6
Dec 18, 2022
renovate
bot
force-pushed
the
renovate/moka-0.x
branch
2 times, most recently
from
February 6, 2023 03:34
5ab81bd
to
7078123
Compare
renovate
bot
changed the title
fix(deps): update rust crate moka to 0.9.6
fix(deps): update rust crate moka to 0.9.7
Feb 6, 2023
renovate
bot
force-pushed
the
renovate/moka-0.x
branch
from
February 10, 2023 12:22
7078123
to
2928aa5
Compare
renovate
bot
changed the title
fix(deps): update rust crate moka to 0.9.7
fix(deps): update rust crate moka to 0.10.0
Feb 10, 2023
renovate
bot
force-pushed
the
renovate/moka-0.x
branch
from
March 15, 2023 17:06
2928aa5
to
8ba171d
Compare
renovate
bot
changed the title
fix(deps): update rust crate moka to 0.10.0
fix(deps): update rust crate moka to 0.10.1
Mar 28, 2023
renovate
bot
force-pushed
the
renovate/moka-0.x
branch
2 times, most recently
from
April 4, 2023 07:50
5f850d6
to
0623ce6
Compare
renovate
bot
changed the title
fix(deps): update rust crate moka to 0.10.1
fix(deps): update rust crate moka to 0.10.2
Apr 4, 2023
renovate
bot
force-pushed
the
renovate/moka-0.x
branch
from
May 1, 2023 12:09
0623ce6
to
71e7b5e
Compare
renovate
bot
changed the title
fix(deps): update rust crate moka to 0.10.2
fix(deps): update rust crate moka to 0.11.0
May 1, 2023
renovate
bot
force-pushed
the
renovate/moka-0.x
branch
from
May 29, 2023 16:27
71e7b5e
to
3c14298
Compare
renovate
bot
changed the title
fix(deps): update rust crate moka to 0.11.0
fix(deps): update rust crate moka to 0.11.1
May 29, 2023
renovate
bot
force-pushed
the
renovate/moka-0.x
branch
from
June 8, 2023 12:46
3c14298
to
f3932ff
Compare
renovate
bot
changed the title
fix(deps): update rust crate moka to 0.11.1
fix(deps): update rust crate moka to 0.11.2
Jun 8, 2023
renovate
bot
force-pushed
the
renovate/moka-0.x
branch
from
August 6, 2023 04:06
f3932ff
to
6272e8b
Compare
renovate
bot
changed the title
fix(deps): update rust crate moka to 0.11.2
fix(deps): update rust crate moka to 0.11.3
Aug 6, 2023
renovate
bot
force-pushed
the
renovate/moka-0.x
branch
from
September 18, 2023 11:03
6272e8b
to
29596b0
Compare
renovate
bot
changed the title
fix(deps): update rust crate moka to 0.11.3
fix(deps): update rust crate moka to 0.12.0
Sep 18, 2023
renovate
bot
force-pushed
the
renovate/moka-0.x
branch
from
October 4, 2023 00:06
29596b0
to
85b8c30
Compare
renovate
bot
changed the title
fix(deps): update rust crate moka to 0.12.0
fix(deps): update rust crate moka to 0.12.1
Oct 4, 2023
renovate
bot
force-pushed
the
renovate/moka-0.x
branch
from
December 28, 2023 13:26
85b8c30
to
6af94cd
Compare
renovate
bot
changed the title
fix(deps): update rust crate moka to 0.12.1
fix(deps): update rust crate moka to 0.12.2
Dec 28, 2023
renovate
bot
force-pushed
the
renovate/moka-0.x
branch
from
January 9, 2024 16:01
6af94cd
to
38c8370
Compare
renovate
bot
changed the title
fix(deps): update rust crate moka to 0.12.2
fix(deps): update rust crate moka to 0.12.3
Jan 9, 2024
renovate
bot
force-pushed
the
renovate/moka-0.x
branch
from
January 22, 2024 17:22
38c8370
to
af6fb4f
Compare
renovate
bot
changed the title
fix(deps): update rust crate moka to 0.12.3
fix(deps): update rust crate moka to 0.12.4
Jan 22, 2024
renovate
bot
force-pushed
the
renovate/moka-0.x
branch
from
January 29, 2024 06:19
af6fb4f
to
07ce509
Compare
renovate
bot
changed the title
fix(deps): update rust crate moka to 0.12.4
fix(deps): update rust crate moka to 0.12.5
Jan 29, 2024
renovate
bot
force-pushed
the
renovate/moka-0.x
branch
from
April 12, 2024 00:48
07ce509
to
efa17da
Compare
renovate
bot
changed the title
fix(deps): update rust crate moka to 0.12.5
fix(deps): update rust crate moka to 0.12.6
Apr 12, 2024
renovate
bot
force-pushed
the
renovate/moka-0.x
branch
from
April 18, 2024 14:36
efa17da
to
f079248
Compare
renovate
bot
changed the title
fix(deps): update rust crate moka to 0.12.6
fix(deps): update rust crate moka to 0.12.7
Apr 18, 2024
renovate
bot
force-pushed
the
renovate/moka-0.x
branch
from
May 5, 2024 13:11
f079248
to
ac61a05
Compare
renovate
bot
changed the title
fix(deps): update rust crate moka to 0.12.7
fix(deps): update rust crate moka to 0.12.0
May 5, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
None yet
0 participants
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
0.9.4
->0.12.0
Release Notes
moka-rs/moka (moka)
v0.12.8
Compare Source
Fixed
v0.1.12
or newer) oftriomphe
crate to keep ourMSRV (Minimum Supported Rust Version) at Rust 1.65
([#426][gh-pull-0426], by [@eaufavor][gh-eaufavor]).
[email protected]
requires Rust 1.76 or newer, so it will not compile with ourMSRV.
[@arcstur][gh-arcstur]).
v0.12.7
Compare Source
Changed
run_pending_tasks
to evict as many entries as possiblefrom the cache ([#417][gh-pull-0417]).
v0.12.6
Compare Source
Fixed
future::Cache
that pendingrun_pending_tasks
calls may causeinfinite busy loop in an internal
schedule_write_op
method([#412][gh-issue-0412]):
v0.12.0
when the background threads were removedfrom
future::Cache
.run_pending_task
method is called by user code whilecache is receiving a very high number of concurrent cache write operations.
(e.g.
insert
,get_with
,invalidate
etc.)schedule_write_op
method will be spinning in a busy loopforever, causing high CPU usage and all other async tasks to be starved.
Changed
async-lock
crate used byfuture::Cache
fromv2.4
to the latestv3.3
.v0.12.5
Compare Source
Added
([#390][gh-pull-0390]):
eviction_policy
method of the cachebuilder with a policy obtained by
EvictionPolicy::lru
function.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.)
recency biased workload such as streaming data processing. LRU policy can be
used for them to achieve better hit rate.
Window-TinyLFU in the future. It will adjust the balance between recency and
frequency based on the current workload.
v0.12.4
Compare Source
Fixed
crossbeam-epoch
to run GC when dropping a cache ([#384][gh-pull-0384]):crossbeam-epoch
crate provides an epoch-based memory reclamation scheme forconcurrent data structures. It is used by Moka cache to safely drop cached
entries while they are still being accessed by other threads.
crossbeam-epoch
does its best to reclaim memory (drop the entries evictedfrom the cache) when the epoch is advanced. However, it does not guarantee that
memory will be reclaimed immediately after the epoch is advanced. This means
that entries can remain in the memory for a while after the cache is dropped.
crossbeam-epoch
's thread local buffers are flushed, helping to reclaim memoryimmediately.
while after a cache is dropped. We are looking for alternatives to
crossbeam-epoch
to improve this situation (e.g. [#385][gh-issue-0385]).Added
([#382][gh-pull-0382])
v0.12.3
Compare Source
Added
([#370][gh-pull-0370]):
entry
andentry_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 theentry.
and_try_compute_with
method, which is similar to above but returnsResult
.Fixed
quanta
from>=0.11.0, <0.12.0
to>=0.12.2, <0.13.0
to avoid under-measuring the elapsed time on Apple siliconMacs ([#376][gh-pull-0376]).
later than expected.
v0.12.2
Compare Source
Fixed
internal data structures ([#348][gh-pull-0348]):
when the cache is full and a second time when there is a room in the cache.
call (which is wrong), and the
entry_count
method will keep returning a nonzero value after calling the
invalidate_all
method (which is also wrong).is read ([#363][gh-pull-0363]):
is used to determine if the entry has been expired.
when pending tasks were processed. This delay caused issue that some entries
become temporarily unavailable for reads even though they have been accessed
recently. And then they will become available again after the pending tasks are
processed.
entry will remain valid until the time-to-idle has elapsed.
Note that both of [#348][gh-pull-0348] and [#363][gh-pull-0363] were already present
in
v0.11.x
and older versions. However they were less likely to occur because theyhad background threads to periodically process pending tasks. So there were much
shorter time windows for these issues to occur.
Changed
[@nyurik][gh-nyurik])
([#340][gh-pull-0340], by [@nyurik][gh-nyurik])
Added
[@peter-scholtens][gh-peter-scholtens])
v0.12.1
Compare Source
Fixed
future::Cache
that occurred whenget_with()
,entry().or_insert_with()
, and similar methods were used ([#329][gh-issue-0329]).v0.12.0
. Versions prior tov0.12.0
do nothave this bug.
Changed
ValueInitializer
([#331][gh-pull-0331], by[@Swatinem][gh-Swatinem]).
v0.12.0
Compare Source
sync
caches are no longer enabled by default: Please use a crate featuresync
to enable it.No more background threads: All cache types
future::Cache
,sync::Cache
, andsync::SegmentedCache
no longer spawn background threads.scheduled-thread-pool
crate was removed from the dependency.future
module were converted toasync
methods. You may need to add.await
to your code for those methods.
Immediate notification delivery: The
notification::DeliveryMode
enum for theeviction listener was removed. Now all cache types behave as if the
Immediate
delivery mode is specified.
Please read the MIGRATION-GUIDE.md for more details.
Changed
future
cache ([#294][gh-pull-0294]) andsync
caches ([#316][gh-pull-0316]).
future::Cache
. ([#309][gh-pull-0309])Fixed
do_insert_with_hash
method gets the currentInstant
too early when eviction listener is enabled. ([#322][gh-issue-0322])v0.11.3
Compare Source
Fixed
sync::Cache
andsync::SegmentedCache
where memory usage keptincreasing when the eviction listener was set with the
Immediate
delivery mode.([#295][gh-pull-0295])
v0.11.2
Compare Source
Bumped the minimum supported Rust version (MSRV) to 1.65 (Nov 3, 2022).
([#275][gh-pull-0275])
Removed
num_cpus
crate from the dependency. ([#277][gh-pull-0277])Changed
([#265][gh-pull-0265], by [@Swatinem][gh-Swatinem])
v0.11.1
Compare Source
Fixed
FrequencySketch
in debug build.([#272][gh-pull-0272])
Added
examples
directory. ([#268][gh-pull-0268], by[@peter-scholtens][gh-peter-scholtens])
v0.11.0
Compare Source
Added
apply to all entries in the cache, the
sync
andfuture
caches can now allowdifferent expiration times for individual entries.
remove
method to thesync
andfuture
caches(#255):
invalidate
method, this method discards any cached value for thekey, but returns a clone of the value.
Fixed
NonNull
pointer derived from ashared reference. ([#259][gh-pull-0259])
Removed
unsync
cache that was marked as deprecated in v0.10.0.v0.10.4
Compare Source
v0.10.3
Compare Source
v0.10.2
Compare Source
Bumped the minimum supported Rust version (MSRV) to 1.60 (Apr 7, 2022).
([#252][gh-issue-0252])
Changed
quanta
crate to v0.11.0. ([#251][gh-pull-0251])mach
is unmaintained"([#243][gh-issue-0243]) by replacing
mach
withmach2
.quanta
v0.11.0's MSRV is 1.60, so we also bumped the MSRV of Moka to 1.60.v0.10.1
Compare Source
Fixed
future
cache'sblocking().invalidate(key)
method does nottrigger the eviction listener. ([#242][gh-issue-0242])
Changed
sync
andfuture
caches will not cache anything when the max capacity is setto zero ([#230][gh-issue-0230]):
though the max capacity is zero.
v0.10.0
Compare Source
Breaking Changes
[Mini-Moka][mini-moka-crate]:
moka::unsync::Cache
→mini_moka::unsync::Cache
moka::dash::Cache
→mini_moka::sync::Cache
sync
andfuture
caches([#199][gh-pull-0199]). They were deprecated in v0.8.0:
get_or_insert_with
(Useget_with
instead)get_or_try_insert_with
(Usetry_get_with
instead)sync
andfuture
caches have been marked as deprecated([#193][gh-pull-0193]):
get_with_if
(Useentry
API'sor_insert_with_if
instead)Added
entry
andentry_by_ref
APIs tosync
andfuture
caches([#193][gh-pull-0193]):
point, the following operations (methods) are provided:
or_default
or_insert
or_insert_with
or_insert_with_if
or_optionally_insert_with
or_try_insert_with
Entry
type, which providesis_fresh
method tocheck if the value was freshly computed or already existed in the cache.
v0.9.9
Compare Source
v0.9.8
Compare Source
v0.9.7
Compare Source
Fixed
get_with
method offuture
cache inflates future size by ~7x,sometimes causing stack overflow ([#212][gh-issue-0212]):
rustc
optimization issue on async functions([rust-lang/rust#62958][gh-rust-issue-62958]).
sync
cache will disablenotifications. ([#207][gh-issue-0207])
Added
build_with_hasher
method of cache builders.([#216][gh-pull-0216])
v0.9.6
Compare Source
Fixed
get_with
family methods to avoid evaluatinginit
closure or future multiple times in concurrent calls. ([#195][gh-pull-0195])
v0.9.5
Compare Source
Added
optionally_get_with
method tosync
andfuture
caches([#187][gh-pull-0187], by [@LMJW][gh-LMJW]):
try_get_with
but takes an init closure/future returning anOption<V>
instead ofResult<V, E>
.by_ref
version of API forget_with
,optionally_get_with
, andtry_get_with
ofsync
andfuture
caches ([#190][gh-pull-0190], by[@LMJW][gh-LMJW]):
by_ref
versions but take a reference of the keyinstead 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
([#180][gh-pull-0180], by [@ClSlaid][gh-ClSlaid])
Fixed
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.