Options
All
  • Public
  • Public/Protected
  • All
Menu

Class MemoryCache

A cache provider, which stores values in memory.

Hierarchy

Implements

Index

Properties

Methods

Properties

Protected _storage

_storage: object

The storage object with values.

Type declaration

  • [key: string]: any

Methods

clear

  • clear(): this

get

  • get<TValue, TDefault>(key: any, defaultValue?: TDefault): TValue | TDefault

has

  • has(key: any): boolean

Protected normalizeKey

  • normalizeKey(key: any): string
  • Normalizes a key value.

    Parameters

    • key: any

      The input value.

    Returns string

    The normalized value.

set

  • set<TValue>(key: any, value: TValue): this

unset

  • unset(key: any): this

Generated using TypeDoc