Skip to main content
Latest
interface IVisitorCacheImplementation
import { type IVisitorCacheImplementation } from "https://deno.land/x/flagship_io_js_sdk@3.3.2/mod.ts";

Methods

cacheVisitor(visitorId: string, Data: VisitorCacheDTO): Promise<void>

This method is called when the SDK needs to cache visitor information in your database.

lookupVisitor(visitorId: string): Promise<VisitorCacheDTO>

This method is called when the SDK needs to get the visitor information corresponding to visitor ID from your database.

flushVisitor(visitorId: string): Promise<void>

This method is called when the SDK needs to erase the visitor information corresponding to visitor ID in your database.