Skip to main content
Module

x/slack_bolt/mod.ts>MemoryStore

TypeScript framework to build Slack apps in a flash with the latest platform features. Deno port of @slack/bolt
Latest
class MemoryStore
import { MemoryStore } from "https://deno.land/x/slack_bolt@1.0.0/mod.ts";

Default implementation of ConversationStore, which stores data in memory.

This should not be used in situations where there is more than once instance of the app running because state will not be shared amongst the processes.

Type Parameters

optional
ConversationState = any

Properties

private
state: Map<string, { value: ConversationState; expiresAt?: number; }>

Methods

get(conversationId: string): Promise<ConversationState>
set(
conversationId: string,
expiresAt?: number,
): Promise<void>