Skip to content

createCache

function createCache(): object;

Defined in: packages/utils/src/defaultCache.ts:10

Factory function that created a default cache implementation that uses the nanostores library.

object

A cache object that satisfies the Cache interface.

get: <T>(key) => Promise<T>;

T

string

Promise<T>

set: <T>(key, value) => Promise<void>;

T

string

T

Promise<void>