darto_cache 1.0.0 copy "darto_cache: ^1.0.0" to clipboard
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.
  • 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.
0
likes
150
points
44
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Cache primitives for Darto — a tiny Cache interface with a zero-dep MemoryCache (LRU + TTL) and a RedisCache adapter for shared/distributed caching.

Homepage
Repository (GitHub)
View/report issues
Contributing

License

MIT (license)

Dependencies

redis

More

Packages that depend on darto_cache