UNPKG

@mikro-orm/core

Version:

TypeScript ORM for Node.js based on Data Mapper, Unit of Work and Identity Map patterns. Supports MongoDB, MySQL, PostgreSQL and SQLite databases as well as usage with vanilla JavaScript.

26 lines (25 loc) 656 B
import type { CacheAdapter } from './CacheAdapter.js'; import type { Dictionary } from '../typings.js'; /** Cache adapter backed by pre-generated static data, typically produced by the CLI cache:generate command. */ export declare class GeneratedCacheAdapter implements CacheAdapter { #private; constructor(options: { data: Dictionary; }); /** * @inheritDoc */ get<T = any>(name: string): T | undefined; /** * @inheritDoc */ set(name: string, data: any, origin: string): void; /** * @inheritDoc */ remove(name: string): void; /** * @inheritDoc */ clear(): void; }