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