Skip to main content
Version: v7.0.0

CacheOptionsType


Import
import { CacheOptionsType } from "@hyper-fetch/core"

Preview

type CacheOptionsType = {
lazyStorage?: CacheAsyncStorageType;
storage?: CacheStorageType;
version?: string;
}

Structure

CacheOptionsType
NameTypeDescription
lazyStorage
CacheAsyncStorageType

Lazy loading from remote resources - possibly persistent

storage
CacheStorageType

Assign your custom sync storage

version
string

Key to clear lazy storage data, often used for versioning If the new key is different from the old one, the cache will be cleared

On this page