interface IRedisLockClient

Minimal ioredis client shape required by RedisLock.

Methods

set(
key: string,
value: string,
option: string,
px: "PX",
ttl: number
): Promise<string | null>

SET key value [NX] [PX ttl] - PX is the milliseconds flag

quit(): Promise<void>

Quit the connection

eval(
script: string,
numkeys: number,
...keysAndArgs: string[]
): Promise<number | string | null>

EVAL script numkeys keys... argv...

Usage

import { type IRedisLockClient } from "scheduler-plugin/src/index.ts";