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) 608 B
import type { CacheAdapter } from './CacheAdapter.js'; /** In-memory cache adapter with time-based expiration. Used as the default result cache. */ export declare class MemoryCacheAdapter implements CacheAdapter { #private; 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; }