createCache
Factory function that created a default cache implementation that uses the nanostores library.
Returns
object
A cache object that satisfies the Cache interface.
get()
Type parameters
• T
Parameters
• key: string
Returns
Promise
<T
>
set()
Type parameters
• T
Parameters
• key: string
• value: T
Returns
Promise
<void
>
Source
defaultCache.ts:10