mes-engine
Version:
A powerful and flexible video processing framework for Node.js with support for multiple processing engines, adaptive streaming, and intelligent caching.
13 lines (12 loc) • 385 B
TypeScript
export interface CacheOptions {
maxSize: number;
ttl: number;
preloadNextChunk: boolean;
externalCacheUrl?: string;
}
export declare abstract class CacheStrategy {
abstract set(key: string, value: Buffer): Promise<void>;
abstract get(key: string): Promise<Buffer | null>;
abstract preload(key: string): Promise<void>;
abstract clear(): Promise<void>;
}