Skip to content

Releases: tylerreisinger/cache-macro

Release 0.4.0

25 Nov 14:50
Compare
Choose a tag to compare

Changes:

  • Rename macro to "cache"
  • Rename crate to "cache-macro
  • Improve support for other kinds of caches

Release 0.3.0

20 Nov 15:57
Compare
Choose a tag to compare

Changes:

  • Default to using a static cache protected by a Mutex instead of TLS.
  • TLS can still be used with the #[lru_config(thread_local)] attribute.

Release 0.2.3

19 Nov 19:58
Compare
Choose a tag to compare

Changes:

  • Fixed an issue with non-Copy types.

Release 0.2.2

18 Nov 21:50
Compare
Choose a tag to compare

Changes:

  • The cache type used can now be configured
  • Certain arguments can be ignored for the purpose of caching

Release 0.2.1

18 Nov 16:40
Compare
Choose a tag to compare

Changes:

  • Reference arguments are now supported
  • CI support added
  • Fixed an issue that prevented non-Copy arguments from being usable

Release 0.2.0

18 Nov 15:35
Compare
Choose a tag to compare

Changes:

  • The LruCache now resides in thread-local storage, allowing the decorated functions to be used in multi-threaded contexts without sharing their cached results.