MCPcopy Create free account
hub / github.com/Openpanel-dev/openpanel / releaseLock

Method releaseLock

packages/db/src/buffers/base-buffer.ts:310–319  ·  view source on GitHub ↗
(lockId: string)

Source from the content-addressed store, hash-verified

308 }
309
310 private async releaseLock(lockId: string): Promise<void> {
311 const script = `
312 if redis.call("get", KEYS[1]) == ARGV[1] then
313 return redis.call("del", KEYS[1])
314 else
315 return 0
316 end
317 `;
318 await getRedisCache().eval(script, 1, this.lockKey, lockId);
319 }
320
321 /**
322 * Emit a flush observation to the configured observer and to the structured

Callers 2

tryFlushMethod · 0.95

Calls 1

getRedisCacheFunction · 0.90

Tested by

no test coverage detected