Documentation / @zerotal/core / lock / LockConfigShape
Interface: LockConfigShape
Defined in: 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: lock/config.ts:11
Storage backend. Default: 'memory'
prefix
prefix:
string
Defined in: lock/config.ts:14
Key prefix prepended to every lock key. Default: 'zerotal_lock:'
sqlite
sqlite:
object
Defined in: lock/config.ts:17
SQLite-specific options.
path
path:
string
Path to the SQLite file. Use ':memory:' for in-process storage.