antlion-lacewing - v2.0.1
    Preparing search index...

    Type Alias RedisClientLike

    RedisClientLike:
        | { call(command: string, args: string[]): Promise<unknown> }
        | { sendCommand(args: string[]): Promise<unknown> }

    The one method of a Redis client the store calls: ioredis's call, or node-redis's sendCommand. A client from new Redis(), new Cluster() or createClient() is passed as it is.

    A node-redis cluster's sendCommand takes the key first, so wrap it: { sendCommand: (args) => cluster.sendCommand(args[1], false, args) }.