MineJSv0.5.1

CacheImplementation

Source: cache.ts:4

Modifiers: abstract

The base implementation for the Cache class

Type Parameters

  • T = any

Constructors

new CacheImplementation<T = any>(): CacheImplementation<T>

Returns

CacheImplementation<T>


Methods

del(key: string): void

abstract
cache.ts:7

Parameters

  • key (string)

Returns

  • void

get(key: string): T | undefined

abstract
cache.ts:6

Parameters

  • key (string)

Returns

  • T | undefined

put(key: string, item: T): void

abstract
cache.ts:5

Parameters

  • key (string)
  • item (T)

Returns

  • void