PromiseCacheExpiry TypeAlias
Three supported expiry policies: - indefinite: entries don't expire and must be explicitly removed - absolute: entries expire after the given duration in MS, even if accessed multiple times in the mean time - sliding: entries expire after the given duration in MS of inactivity (i.e. get resets the clock) \
This API is provided for existing users, but is not recommended for new users.
To use, import via @fluidframework/core-utils/legacy
.
For more information about our API support guarantees, see here.
Signature
export type PromiseCacheExpiry = {
policy: "indefinite";
} | {
policy: "absolute" | "sliding";
durationMs: number;
};