Skip to content

createCache

const createCache: () => object;

Defined in: packages/utils/dist/index.d.mts:8

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>