@open-mercato/cache 0.8.1-develop.7228.1.b7ea09d2d3 → 0.8.1-develop.7238.1.3abe669ea5
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/AGENTS.md +2 -0
- 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