Expand description
Named locks.
Structs§
- Filesystem
Lock Store - Disk-backed
LockStore(one file per resource). - Filesystem
Lock Store Config - Configuration for
FilesystemLockStore. - InMemory
Lock Store - In-process lock store backed by a
Mutex+HashMap. - Lock
- Named lock bound to one owner token and a
LockStore. - Lock
Factory - Creates
Lockhandles against a sharedLockStore. - LockKey
- Resource name plus opaque owner token.
- Lock
Store Service - Newtype so
LockStoretrait objects can be stored in the container. - Register
Default Lock Pass - Seeds
DEFAULT_LOCK_STORE_SERVICEwith anInMemoryLockStorewhen missing.
Enums§
- Lock
Error - Failure while creating or operating a lock.
Constants§
- DEFAULT_
LOCK_ STORE_ SERVICE - Container id of the default lock store when registered by the pass.
- DEFAULT_
LOCK_ TTL - Default TTL when
LockFactory::create_lockreceivesttl: None(Symfony default). - LOCK_
STORE_ TAG - Service tag applied to lock store definitions.
Traits§
- Lock
Store - Low-level lock persistence (Symfony
PersistingStoreInterfaceanalogue).
Functions§
- generate_
lock_ token - Generates a random hex owner token.
- validate_
resource - Rejects empty resource names.