Options
All
  • Public
  • Public/Protected
  • All
Menu

Class BaseAsyncCache<K, T, I>

A base class for implementing an asynchronous cache. It simply needs to provides a data structure used to cache items

author

Thomas Minier

Type parameters

  • K

  • T

  • I

Hierarchy

Implements

Index

Constructors

Properties

Methods

Constructors

constructor

Properties

Private _cache

_cache: Cache<K, AsyncCacheEntry<T, I>>

Methods

commit

  • commit(key: K, writerID: I): void

count

  • count(): number

delete

  • delete(key: K, writerID: I): void

get

  • get(key: K): Promise<T[]> | null

has

  • has(key: K): boolean

update

  • update(key: K, item: T, writerID: I): void

Generated using TypeDoc