CacheOptionsType
Import
import { CacheOptionsType } from "@hyper-fetch/core"
Source
Package
Preview
type CacheOptionsType = {
lazyStorage?: CacheAsyncStorageType;
storage?: CacheStorageType;
version?: string;
}
Structure
CacheOptionsType
| Name | Type | Description |
|---|---|---|
| lazyStorage | | Lazy loading from remote resources - possibly persistent |
| storage | | Assign your custom sync storage |
| version | | 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 |