Skip to content
Français

TaskCacheMode

import type { TaskCacheMode } from "@elie-laloum/outpost";

mode of a task cache. Values: “reuse” (default; return a valid stored value instead of running the task), “refresh” (skip the lookup, run the task and overwrite the entry).

Complete example and detailed rules.

export type TaskCacheMode = "reuse" | "refresh";