@nifrajs/cache 1.13.0 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -52,3 +52,11 @@ the Cache API) via a `CacheStore` for anything that should survive across reques
|
|
|
52
52
|
- `createCache(options?)` → `Cache` — `{ store?, defaultTtlMs?, now?, onError? }`.
|
|
53
53
|
- `cache.wrap(key, loader, { ttlMs?, swrMs?, tags? })` · `get` · `has` · `set` · `delete` · `invalidateTag` · `clear`.
|
|
54
54
|
- `MemoryCache({ maxEntries?, now? })` — the default store; implement `CacheStore` for your own.
|
|
55
|
+
|
|
56
|
+
## For AI agents
|
|
57
|
+
|
|
58
|
+
Start with [`LLM.md`](./LLM.md) — this package's contract card (the exports you call + its footguns),
|
|
59
|
+
one cheap read instead of the whole corpus. For the wider framework: the repo's
|
|
60
|
+
[`AGENTS.md`](../../AGENTS.md) is the copy-paste quick reference, and
|
|
61
|
+
[`llms-full.txt`](../../llms-full.txt) is the full machine-readable corpus. Run `nifra check` as the
|
|
62
|
+
done-gate, or `nifra mcp` to give the agent live project tools.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nifrajs/cache",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "2.1.0",
|
|
4
4
|
"description": "Typed KV cache for nifra — TTL, stale-while-revalidate, tag invalidation, and single-flight stampede protection on a pluggable store (in-memory default; bring CF KV / Redis). Dependency-free, runs on Bun/Node/Deno/Workers.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"bun",
|