Dynamic module memory-cache

Index

Functions

Functions

clear()

debug(bool: boolean)

Parameters

  • bool: boolean

del(key: any)

Parameters

  • key: any

get(key: any): any

Parameters

  • key: any

Returns

any

hits(): number

Returns

number

memsize(): number

Returns

number

misses(): number

Returns

number

put(key: any, value: any, time?: number, timeoutCallback?: (key: any) => void)

Parameters

  • key: any
  • value: any
  • time?: number optional
  • timeoutCallback?: (key: any) => void optional

size(): number

Returns

number