Functions
get
- get(botId: string, key: string, path?: string): Promise<any>
-
Parameters
-
botId: string
-
key: string
-
Optional path: string
Returns Promise<any>
getConversationStorageKey
- getConversationStorageKey(sessionId: string, variable: string): string
-
Parameters
-
sessionId: string
-
variable: string
Returns string
getGlobalStorageKey
- getGlobalStorageKey(variable: string): string
-
Parameters
Returns string
getStorageWithExpiry
- getStorageWithExpiry(botId: string, key: string): any
-
Parameters
-
botId: string
-
key: string
Returns any
getUserStorageKey
- getUserStorageKey(userId: string, variable: string): string
-
Parameters
-
userId: string
-
variable: string
Returns string
removeStorageKeysStartingWith
- removeStorageKeysStartingWith(key: any): Promise<void>
-
Parameters
Returns Promise<void>
set
- set(botId: string, key: string, value: any, path?: string, expiry?: string): Promise<void>
-
Parameters
-
botId: string
-
key: string
-
value: any
-
Optional path: string
-
Optional expiry: string
Returns Promise<void>
setStorageWithExpiry
- setStorageWithExpiry(botId: string, key: string, value: any, expiry?: string): any
-
Parameters
-
botId: string
-
key: string
-
value: any
-
Optional expiry: string
Returns any