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.

25 lines (24 loc) 555 B
import type { CacheAdapter } from './CacheAdapter'; export declare class MemoryCacheAdapter implements CacheAdapter { private readonly options; private readonly data; constructor(options: { expiration: number; }); /** * @inheritDoc */ get<T = any>(name: string): T | undefined; /** * @inheritDoc */ set(name: string, data: any, origin: string, expiration?: number): void; /** * @inheritDoc */ remove(name: string): void; /** * @inheritDoc */ clear(): void; }