Skip to main content
Version: v7.0.0

CacheStorageType


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

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
NameTypeDescription
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
On this page