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

Properties

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

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

Methods

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.