Options
All
  • Public
  • Public/Protected
  • All
Menu

Class MemoryCache

Hierarchy

  • MemoryCache

Implements

Index

Constructors

constructor

Properties

Protected expireAfter

expireAfter: number = 10

Protected maxSize

maxSize: number = 100_000

Protected store

store: Map<any, any> = ...

Methods

clear

  • clear(): void

get

  • get<T>(key: string, fallback: () => Promise<T>): Promise<T>

set

  • set(key: string, data: any): void