Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface KvsService

Hierarchy

  • KvsService

Index

Methods

delete

  • delete(key: string): Promise<void>

exists

  • exists(key: string): Promise<boolean>

get

  • get(key: string, path?: undefined | string): Promise<any>
  • Parameters

    • key: string
    • Optional path: undefined | string

    Returns Promise<any>

getConversationStorageKey

  • getConversationStorageKey(sessionId: string, variable: string): string
  • Parameters

    • sessionId: string
    • variable: string

    Returns string

getGlobalStorageKey

  • getGlobalStorageKey(variable: string): string

getStorageWithExpiry

  • getStorageWithExpiry(key: string): any

getUserStorageKey

  • getUserStorageKey(userId: string, variable: string): string

removeStorageKeysStartingWith

  • removeStorageKeysStartingWith(key: any): Promise<void>

set

  • set(key: string, value: any, path?: undefined | string, expiry?: undefined | string): Promise<void>
  • Parameters

    • key: string
    • value: any
    • Optional path: undefined | string
    • Optional expiry: undefined | string

    Returns Promise<void>

setStorageWithExpiry

  • setStorageWithExpiry(key: string, value: any, expiry?: undefined | string): any
  • Parameters

    • key: string
    • value: any
    • Optional expiry: undefined | string

    Returns any

Generated using TypeDoc