darto_cache 1.0.0
darto_cache: ^1.0.0 copied to clipboard
Cache primitives for Darto — a tiny Cache interface with a zero-dep MemoryCache (LRU + TTL) and a RedisCache adapter for shared/distributed caching.
1.0.0 #
- Initial release.
Cacheinterface:get / set / delete / has / clear / close— small, async, prefix-aware.MemoryCache— zero-dep in-process cache with lazy TTL expiry and optional LRU eviction (maxEntries). O(1) lookup and write.RedisCache— distributed adapter on top of theredisdriver (pure-Dart). JSON codec for values, key prefixing, prefix-scopedclear()viaSCAN+ batchedDEL(orFLUSHDBwhen unprefixed).cache.remember(key, {ttl, builder})— read-through helper.