5 unstable releases

0.12.2 Apr 25, 2021
0.12.1 Dec 29, 2020
0.12.0 Aug 10, 2020
0.11.0 Aug 8, 2020
0.10.0 Jul 20, 2020

#352 in Caching

Download history 13/week @ 2024-07-22 10/week @ 2024-07-29 8/week @ 2024-08-05 9/week @ 2024-08-12 19/week @ 2024-08-26 6/week @ 2024-09-02 7/week @ 2024-09-09 11/week @ 2024-09-16 37/week @ 2024-09-23 18/week @ 2024-09-30 1/week @ 2024-10-07 8/week @ 2024-10-14 7/week @ 2024-10-21 19/week @ 2024-10-28 27/week @ 2024-11-04

61 downloads per month
Used in 2 crates

MIT/Apache

76KB
1.5K SLoC

dyn-cache

The dyn-cache crate provides incremental caching for Rust function invocations.

[0.12.2] - 2021-04-25

Fixed

  • Cached values no longer inherit liveness from their dependents if those dependents were initialized in the current GC revision. This prevented some values from being GC'd at the correct time. See #238.

[0.12.1] - 2020-12-28

Added

  • wasm-bindgen cargo feature which enables correct usage of parking_lot on wasm32 targets.

[0.12.0] - 2020-08-09

Changed

  • CacheMiss handles initialization of borrowed inputs for storage, this removes arguments from some lower-level functions.

[0.11.0] - 2020-08-08

Fixed

  • Nested queries to SharedLocalCache/``SharedSendCache` have their intermediate dependencies retained as long as a transitive dependent is used in a revision.

[0.10.0] - 2020-07-19

Added

  • Crate extracted from topo::cache module.
  • {LocalCache,SendCache}::cache wraps cache_with for types that impl Clone.
  • {LocalCache,SendCache}::hold wraps cache_with for queries that don't need returns.
  • CacheMiss struct is used to ensure storage happens where the failed lookup happened.

Changed

  • Rename Cache/SharedCache to SendCache/SharedSendCache.

Dependencies

~2.8–5MB
~92K SLoC