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

Define the strategy that will be used for hit caching

Members

CONTINUOUS_CACHING

When a hit is emitted, it will be first cached in database using IHitCacheImplementation and added into the pool, then after batching and sending, it will also be flushed from database using IHitCacheImplementation.

Note: the SDK has a default cache implementation for browser using localStorage

PERIODIC_CACHING

When a hit is emitted, it will be added into the pool, then after batching and sending, all database hits will be flushed, then the entire pool will be cached using IHitCacheImplementation for both actions.