@xtandard/entitlements/storage/memory
In-memory state storage (zero deps; tests, dev, single-process apps).
import { … } from "@xtandard/entitlements/storage/memory";Functions
Section titled “Functions”| Name | Summary |
|---|---|
createMemoryStorage |
Create an in-memory storage implementing both watch (callbacks fire on the next microtask after a write/remove) and compareAndSwap (structural equality; race-free in-process). |
Type aliases
Section titled “Type aliases”| Name | Summary |
|---|---|
MemoryEntitlementsStorage |
The memory storage: watchable and compare-and-swap capable. |
MemoryStorageOptions |
Options for createMemoryStorage. |