method IRedisLockClient.set
IRedisLockClient.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

Parameters

key: string
value: string
option: string
px: "PX"
ttl: number

Return Type

Promise<string | null>

Usage

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