Options
All
  • Public
  • Public/Protected
  • All
Menu

Class MemCache<V>

A simple, in-memory cache, with keys being transaction ids (e.g. contract transaction id).

Type parameters

  • V = any

Hierarchy

  • MemCache

Implements

Index

Constructors

Properties

Methods

Constructors

constructor

  • Type parameters

    • V = any

    Returns MemCache<V>

Properties

Private Readonly storage

storage: {} = {}

Type declaration

  • [key: string]: V

Methods

clearAll

  • clearAll(): void

contains

  • contains(key: string): boolean

get

  • get(key: string): V

put

  • put(key: string, value: V): void

remove

  • remove(key: string): void

Generated using TypeDoc