export declare abstract class Redis { private client; /** * 初始化 redis * @param redisUrl 连接 * @param redisPwd 密码 */ protected abstract config(): { redisUrl: string; redisPwd: string; db?: number; }; constructor(); /** * * @param {string} key * @returns {Promise} */ get(key: string): Promise; /** * * @param {string} key * @param {string} value * @param {number} exprires 过期时间 seconds */ set(key: string, value: string, exprires: number): Promise; /** * * @param {string} key */ del(key: string): Promise; /** * * @param {string} pattern */ dels(pattern: string): Promise; }