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

#335 in Caching

Download history 5/week @ 2024-02-19 39/week @ 2024-02-26 13/week @ 2024-03-04 15/week @ 2024-03-11 10/week @ 2024-03-18 4/week @ 2024-03-25 120/week @ 2024-04-01

151 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.6–4.5MB
~87K SLoC