@kubb/core
Version:
Core functionality for Kubb's plugin-based code generation system, providing the foundation for transforming OpenAPI specifications.
32 lines (24 loc) • 602 B
text/typescript
export class Cache<T> {
async get(key: string): Promise<T | null> {
return this.
}
async set(key: string, value: T): Promise<void> {
this.
}
async delete(key: string): Promise<void> {
this.
}
async clear(): Promise<void> {
this.
}
async keys(): Promise<string[]> {
return [...this.
}
async values(): Promise<T[]> {
return [...this.
}
async flush(): Promise<void> {
// No-op for base cache
}
}