redis.d.ts 403 B

12345678910
  1. export default class {
  2. private client;
  3. private expireAfter;
  4. constructor(opt: IRedisConfig);
  5. private chatAsString;
  6. cacheContent: (contentId: string, content: string) => Promise<void>;
  7. cacheForChat: (postId: string, target: IChat) => Promise<void>;
  8. getContent: (contentId: string) => Promise<string>;
  9. isCachedForChat: (postId: string, target: IChat) => Promise<boolean>;
  10. }