CacheStorageType
Import
import { CacheStorageType } from "@hyper-fetch/core"
Source
Package
Preview
type CacheStorageType = {
clear: () => void;
delete: (key: string) => void;
get: <Response, Error, Adapter>(key: string) => CacheValueType<Response, Error, Adapter> | undefined;
keys: () => string[] | IterableIterator<string> | string[];
set: <Response, Error, Adapter>(key: string, data: CacheValueType<Response, Error, Adapter>) => void;
}
Structure
CacheStorageType
| Name | Type | Description |
|---|---|---|
| clear | | |
| delete | | |
| get | | |
| keys | | |
| set | |