UNPKG

extensor

Version:

Extra funcionalities to socket.io

11 lines (10 loc) 385 B
import { Redis } from "ioredis"; import { Storage } from "../types"; export default class IORedisStorageAdapter implements Storage { client: Redis; constructor(client: Redis); get(key: string): Promise<string | null>; set(key: string, value: any): Promise<"OK" | null>; del(key: string): Promise<number>; deleteAll(keys: string[]): Promise<number>; }