Skip to main content
zerotal

Documentation


Documentation / zerotal / lock / LockConfigShape

Interface: LockConfigShape

Defined in: packages/core/src/lock/config.ts:9

Full shape of the lock config namespace, as produced by LockConfig. Selects the storage backend and driver-specific options.

Properties

driver

driver: "memory" | "sqlite" | "redis"

Defined in: packages/core/src/lock/config.ts:11

Storage backend. Default: 'memory'


prefix

prefix: string

Defined in: packages/core/src/lock/config.ts:14

Key prefix prepended to every lock key. Default: 'zerotal_lock:'


sqlite

sqlite: object

Defined in: packages/core/src/lock/config.ts:17

SQLite-specific options.

path

path: string

Path to the SQLite file. Use ':memory:' for in-process storage.