@just-every/mcp-read-website-fast
Version:
Markdown Content Preprocessor - Fetch web pages, extract content, convert to clean Markdown
13 lines (12 loc) • 423 B
TypeScript
import { CacheEntry } from '../types.js';
export declare class DiskCache {
private cacheDir;
constructor(cacheDir?: string);
init(): Promise<void>;
private getCacheKey;
private getCachePath;
has(url: string): Promise<boolean>;
get(url: string): Promise<CacheEntry | null>;
put(url: string, markdown: string, title?: string): Promise<void>;
getAge(url: string): Promise<number | null>;
}