{
"$type": "site.standard.document",
"bskyPostRef": {
"cid": "bafyreidxzqtmj3i3pnmmc7cedl6zkp55eard3minspfbdwys5rw2wsgbfu",
"uri": "at://did:plc:nfto3lv2rcs5s7h7digotzlu/app.bsky.feed.post/3mmzwv4gqdkl2"
},
"path": "/packages/darto_cache",
"publishedAt": "2026-05-30T01:52:18.819Z",
"site": "https://pub.dev",
"textContent": "Cache primitives for Darto — a tiny Cache interface with a zero-dep MemoryCache (LRU + TTL) and a RedisCache adapter for shared/distributed caching. Changelog excerpt: - Initial release. - `Cache`interface: `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 the `redis`driver (pure-Dart). JSON codec for values, key prefixing, prefix-scoped `clear()`via `SCAN`+ batched `DEL`(or `FLUSHDB`when unprefixed). - `cache.remember(key, {ttl, builder})`— read-through helper.",
"title": "v1.0.0 of darto_cache",
"updatedAt": "2026-05-30T01:10:06.479Z"
}