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.
Returns
Section titled “Returns”object
A cache object that satisfies the Cache interface.
get: <T>(key) => Promise<T>;Type Parameters
Section titled “Type Parameters”T
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”Promise<T>
set: <T>(key, value) => Promise<void>;Type Parameters
Section titled “Type Parameters”T
Parameters
Section titled “Parameters”string
T
Returns
Section titled “Returns”Promise<void>