(lockId: string)
| 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 |
no test coverage detected