method IRedisClient.scan
IRedisClient.scan(
cursor: string,
matcher: string,
matchValue?: string
): Promise<[string, string[]]>

Cursor-based scan. Returns [cursor, keys[]]. Use '0' to start and continue until cursor returns '0'.

Parameters

cursor: string
matcher: string
optional
matchValue: string

Return Type

Promise<[string, string[]]>

Usage

import { type IRedisClient } from "cache-plugin/src/index.ts";