@xtandard/entitlements/storage/file
File-system state storage: one JSON file per key under a base directory,
write-then-rename, fs.watch change events, in-process compare-and-swap.
import { … } from "@xtandard/entitlements/storage/file";Functions
Section titled “Functions”| Name | Summary |
|---|---|
createFileStorage |
Create a file-backed FileEntitlementsStorage. watch is implemented via fs.watch on the base directory (recursive); it is best-effort and may coalesce or miss events on platforms without recursive-watch support. |
Type aliases
Section titled “Type aliases”| Name | Summary |
|---|---|
FileEntitlementsStorage |
The file storage: watchable and (in-process) compare-and-swap capable. |
FileStorageOptions |
Options for createFileStorage. |