MCPcopy Create free account
hub / github.com/Effect-TS/effect / keyLock

Function keyLock

packages/effect/src/unstable/persistence/PersistedQueue.ts:393–393  ·  view source on GitHub ↗
(id: string)

Source from the content-addressed store, hash-verified

391 const prefix = options?.prefix ?? "effectq:"
392 const keyQueue = (name: string) => `${prefix}${name}`
393 const keyLock = (id: string) => `${prefix}${id}:lock`
394 const keyPending = (name: string) => `${prefix}${name}:pending`
395 const keyFailed = (name: string) => `${prefix}${name}:failed`
396 const workerId = crypto.randomUUID()

Callers 1

PersistedQueue.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected