import { RedisOptions } from '@alipay/faas-server-sdk/lib/Redis'; import BaseStorage from './BaseStorage'; import Base from '../models/Base'; import { Where } from '../types/Websocket'; export default class RedisStorage implements BaseStorage { private client; constructor(config?: RedisOptions); update(table: string, where: Where, data: any): Promise; remove(table: string, where: Where): Promise; save(table: string, data: Base): Promise; findById(table: string, id: string, namespace?: string): Promise; find(table: string, where: Where): Promise; private scanKeys; }