Registry / utility / lru-time-cache

lru-time-cache

JSON →
library0.11.11rscratesunverified

Implementation of a Least Recently Used caching algorithm in a container which may be limited by size or time, ordered by most recently seen.

# Cargo.toml [dependencies] lru_time_cache = "0.11.11"
INSTALL
IMPORT
SIG · LRU-TIME-CACHE
L
lru-time-cache
utilityrustv0.11.11
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

LruCache
use lru_time_cache::LruCache;

Creating an LRU cache with time-based expiration and capacity limit.

use lru_time_cache::LruCache; let mut cache: LruCache<String, i32> = LruCache::with_expiry_time_and_capacity( std::time::Duration::from_secs(60), 100); cache.insert("key".to_string(), 42);
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.11.11latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
5 hits · last 30 days
node
4
Amazon
1
Resources
lru-time-cache — cargo add lru-time-cache · libregistry