Options
All
  • Public
  • Public/Protected
  • All
Menu

Class MemoryCache

A cache implementation which stores documents in an in-memory cache.

Be aware that this is an incredibly simplistic implementation which doesn't manage memory usage at all and is very likely NOT suitable for production use.

Hierarchy

  • MemoryCache

Implements

Index

Properties

Methods

Properties

Private cache

cache: any

Methods

clear

  • clear(key: string): PromiseLike<boolean>

get

  • get<T>(key: string): PromiseLike<T>

set

  • set<T>(key: string, value: T): PromiseLike<T>

Generated using TypeDoc