@open-mercato/cache 0.8.1-develop.7227.1.9248c14599 → 0.8.1-develop.7237.1.635faf2c7a

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.
Files changed (2) hide show
  1. package/AGENTS.md +2 -0
  2. package/package.json +1 -1
package/AGENTS.md CHANGED
@@ -10,6 +10,8 @@ Use `@open-mercato/cache` for all caching needs. MUST NOT use raw Redis, SQLite,
10
10
  | SQLite | Use for single-server production deployments; local persistent convenience cache, tuned with WAL/`synchronous=NORMAL` | `CACHE_STRATEGY=sqlite` |
11
11
  | Redis | Use for multi-server production or latency-sensitive request paths with frequent cache writes | `CACHE_STRATEGY=redis` |
12
12
 
13
+ The `memory` strategy is per process: a write on one instance never invalidates another instance's copy inline. A module relying on tag-based invalidation for correctness across multiple instances (e.g. the webhooks package's subscription cache, `OM_WEBHOOKS_SUBSCRIPTION_CACHE_TTL_MS`) needs `CACHE_STRATEGY=redis`, or a short TTL as a fallback, to converge promptly.
14
+
13
15
  ## Memory Strategy Bounds
14
16
 
15
17
  The memory strategy is bounded so a process-shared instance (`OM_BOOTSTRAP_CACHE`, long-lived workers, memory-backed CRUD list cache) cannot grow without limit on user-controllable key cardinality.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-mercato/cache",
3
- "version": "0.8.1-develop.7227.1.9248c14599",
3
+ "version": "0.8.1-develop.7237.1.635faf2c7a",
4
4
  "license": "MIT",
5
5
  "description": "Multi-strategy cache service with tag-based invalidation support",
6
6
  "type": "module",