Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Cache

Hierarchy

  • Cache

Implements

  • ICache

Index

Constructors

constructor

Properties

Private adapterClasses

adapterClasses: { clazz: ClassType<ICacheAdapter>; type: string }[] = []

Private adapters

adapters: {} = {}

Type declaration

Private bins

bins: {} = {}

Type declaration

Private nodeId

nodeId: string

Private options

options: ICacheConfig = ...

Static NAME

NAME: string = ...

Methods

configure

  • configure(nodeId: string, config?: ICacheConfig): Promise<void>

get

  • get<T>(key: string, bin?: string, options?: ICacheGetOptions): Promise<T>
  • Type parameters

    • T

    Parameters

    • key: string
    • bin: string = ...
    • Optional options: ICacheGetOptions

    Returns Promise<T>

getAdapterClasses

  • getAdapterClasses(): { clazz: ClassType<ICacheAdapter>; type: string }[]

getAdapters

  • getAdapters(): {}

getBin

getBins

  • getBins(): {}

getOptions

register

set

  • set<T>(key: string, value: T, bin?: string, options?: ICacheSetOptions): Promise<T>
  • Type parameters

    • T

    Parameters

    • key: string
    • value: T
    • bin: string = ...
    • Optional options: ICacheSetOptions

    Returns Promise<T>

shutdown

  • shutdown(): Promise<void[]>

Generated using TypeDoc