Skip to main content
Deno 2 is finally here 🎉️
Learn more
Go to Latest
interface IVisitorCacheImplementation
import { type IVisitorCacheImplementation } from "https://deno.land/x/flagship_io_js_sdk@3.2.1/cache/IVisitorCacheImplementation.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.