Options
All
  • Public
  • Public/Protected
  • All
Menu

Abstract PreferenceStore implementation to handle ttl and key scoping

Hierarchy

Implements

  • PreferenceStore

Index

Constructors

Properties

Methods

Constructors

Protected constructor

Properties

Private ctx

ctx: HandlerContext

Methods

delete

  • delete(key: string, options?: object): Promise<void>

Protected Abstract doDelete

  • doDelete(key: string, namespace: string): Promise<void>

Protected Abstract doGet

  • doGet(key: string, namespace: string): Promise<Preference | undefined>

Protected Abstract doList

  • doList(namespace: string): Promise<Preference[]>

Protected Abstract doPut

get

  • get<V>(key: string, options?: object): Promise<V | undefined>

list

  • list<V>(scope: PreferenceScope | string): Promise<Array<object>>

put

  • put<V>(key: string, value: V, options?: object): Promise<V>

Protected scope

  • scope(scope: PreferenceScope | string): string

Protected scopeKey

  • scopeKey(key: string, scope?: string): string

Generated using TypeDoc