UNPKG

extensor

Version:

Extra funcionalities to socket.io

14 lines (13 loc) 554 B
import { RedisClient } from "redis"; import { Storage } from "../types"; export default class RedisStorageAdapter implements Storage { client: RedisClient; getAsync: (key: string) => Promise<string | null>; setAsync: (key: string, value: any) => Promise<any>; delAsync: (key: string) => Promise<any>; constructor(client: RedisClient); get(key: string): Promise<string | null>; set(key: string, value: any): Promise<any>; del(key: string): Promise<any>; deleteAll(keys: string | string[]): Promise<any>; }