(key: string, value: string, timeout: number)
| 126 | } |
| 127 | |
| 128 | export async function getLock(key: string, value: string, timeout: number) { |
| 129 | const lock = await getRedisCache().set(key, value, 'PX', timeout, 'NX'); |
| 130 | return lock === 'OK'; |
| 131 | } |
no test coverage detected