Download lib/utils/cache/base.ts from ASEM12345/rsshub: direct link, hf CLI and curl.
- Browser
- Download file 466 Bytes
-
https://huggingface.co/spaces/ASEM12345/rsshub/resolve/main/lib/utils/cache/base.ts
- Command line
-
hf download hf://spaces/ASEM12345/rsshub/lib/utils/cache/base.ts
-
curl -L -o base.ts https://huggingface.co/spaces/ASEM12345/rsshub/resolve/main/lib/utils/cache/base.ts
466 Bytes
| import type Redis from 'ioredis'; | |
| import type { LRUCache } from 'lru-cache'; | |
| type CacheModule = { | |
| init: () => void; | |
| get: (key: string, refresh?: boolean) => Promise<string | null> | string | null; | |
| set: (key: string, value?: string | Record<string, any>, maxAge?: number) => any; | |
| status: { | |
| available: boolean; | |
| }; | |
| clients: { | |
| redisClient?: Redis; | |
| memoryCache?: LRUCache<any, any>; | |
| }; | |
| }; | |
| export default CacheModule; | |