Skip to content

fix(deps): update rust crate cached to v1#964

Open
renovate[bot] wants to merge 1 commit into
masterfrom
renovate/cached-1.x
Open

fix(deps): update rust crate cached to v1#964
renovate[bot] wants to merge 1 commit into
masterfrom
renovate/cached-1.x

Conversation

@renovate
Copy link
Copy Markdown
Contributor

@renovate renovate Bot commented May 21, 2026

This PR contains the following updates:

Package Type Update Change
cached dependencies major 0.44.01.0.0

Release Notes

jaemk/cached (cached)

v1.1.0

Added
  • Add ExpiringCache (and ExpiringCacheBuilder) as a size-unbounded store where each value implements the Expires trait and determines its own expiration.
  • Add expires = true attribute to the #[cached] procedural macro: automatically selects ExpiringCache (unbounded) or ExpiringLruCache (LRU-bounded when size is also set), so the return type controls its own expiry via Expires. Compatible with result, option, result_fallback, sync_writes, key/convert, and size. Mutually exclusive with ttl, ty, create, with_cached_flag, unsync_reads, refresh, and unbound.
  • Add support for the expires = true attribute in the #[once] procedural macro to allow single-value functions to utilize value-defined expiration (Expires trait).
  • Add comprehensive unit tests in src/stores/expiring_lru.rs covering the Expires trait and ExpiringLruCache's CachedIter::iter expired-filtering, Clone, std::fmt::Debug, cache_remove, and cache_clear.
  • Implement std::fmt::Debug and Clone for TtlSortedCache (and its internal Entry type) and ExpiringCache to ensure full Debug/Clone trait parity across all 7 core in-memory store types.
  • Add robust unit tests across all remaining core cache stores (UnboundCache, LruCache, TtlCache, LruTtlCache, TtlSortedCache) verifying Debug and Clone trait behaviors; UnboundCache and LruCache also verify PartialEq and Eq.
  • Add comprehensive validation unit tests for each store builder's fallible try_build() methods (asserting expected BuildError outcomes for invalid capacities, sizes, or missing required attributes like ttl).
  • Add unit tests validating the std::fmt::Display representation for all BuildError variants in src/stores/mod.rs.
  • Add standardized micro-benchmarks (benches/cache_benches.rs) for cache hits across all 7 core in-memory stores (UnboundCache, LruCache, TtlCache, LruTtlCache, ExpiringLruCache, ExpiringCache, TtlSortedCache), cache misses & inserts, eviction capacity overhead, and RwLock lock-synchronization (with and without CachedRead::cache_get_read unsynchronized reads).
  • Add new bench target to the Makefile to run the benchmark suite.
  • Add GitHub Actions workflow (.github/workflows/codspeed.yml) for automated, low-noise continuous benchmarking on every push and pull request.
  • Add standard, runnable example examples/expires_per_key.rs demonstrating how to use the Expires trait with ExpiringLruCache and ExpiringCache for per-value expiration, including keyed caching via #[cached(expires = true)] and single-value caching via #[once(expires = true)].
  • Add detailed library-level documentation and quickstart example for Expires, ExpiringCache, and ExpiringLruCache to src/lib.rs (automatically synced to README.md).

v1.0.0

Upgrading from 0.x? See the 1.0 migration guide
for a complete walkthrough of every breaking change (and an
agent-oriented version for automated tooling).

v0.59.0

[0.59.0 / [cached_proc_macro[0.27.0]]]

v0.58.0

[0.58.0]

v0.57.0

[0.57.0 / [cached_proc_macro[0.26.0]]]

v0.56.0

[0.56.0 / [cached_proc_macro[0.25.0]]]

v0.55.1

[0.55.1 / [cached_proc_macro[0.24.0]]]

v0.54.0

[0.54.0]

v0.53.1

[0.53.1 / [cached_proc_macro[0.23.0]]]

v0.53.0

[0.53.0]

v0.52.0

[0.52.0 / [cached_proc_macro[0.22.0]] ]

v0.51.4

[0.51.4]

v0.51.3

[0.51.3]

v0.51.2

[0.51.2]

v0.51.1

[0.51.1]

v0.51.0

[0.51.0]

v0.50.0

[0.50.0 / [cached_proc_macro[0.21.0]] ]

v0.49.3

[0.49.3]

v0.49.2

[0.49.2]

v0.49.1

[0.49.1]

v0.49.0

[0.49.0 / [cached_proc_macro[0.20.0]] ]

v0.48.1

[0.48.1 / [cached_proc_macro[0.19.1]] / [cached_proc_macro_types[0.1.1]]]

v0.48.0

[0.48.0 / [cached_proc_macro[0.19.0]]]

v0.47.0

[0.47.0]

v0.46.1

[0.46.1 / [cached_proc_macro[0.18.1]]

v0.46.0

[0.46.0]

v0.45.1

[0.45.1] / [cached_proc_macro[0.18.0]]

v0.45.0

[0.45.0]


Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Enabled.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate Bot force-pushed the renovate/cached-1.x branch 2 times, most recently from 95d3951 to 01db5e9 Compare May 25, 2026 06:30
@renovate renovate Bot force-pushed the renovate/cached-1.x branch from 01db5e9 to 1b784ed Compare May 26, 2026 04:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants