royal-cache kpm/royal-cache verified
An in-memory LRU cache with TTL, tagging, and a delightfully small footprint.
$kpm install royal-cache
Overview
royal-cache is an LRU cache with per-entry TTL and tag-based invalidation, built for services that need predictable memory use without reaching for an external cache server.
Usage
const cache = require("royal-cache")({ max: 500, ttl: 60000 });ncache.set("player:42", profile, { tags: ["player"] });ncache.invalidateTag("player");
License
See the package license field in the sidebar. Published under the Kings Package Manager registry terms.