Interface: SharedCache
nekte-protocol / client/src / SharedCache
Interface: SharedCache
Defined in: nekte-source/packages/client/src/shared-cache.ts:34
Port: a shared cache that multiple clients can reference.
Methods
notifyInvalidation()
notifyInvalidation(
key):void
Defined in: nekte-source/packages/client/src/shared-cache.ts:40
Notify all subscribers of an invalidation
Parameters
key
string
Returns
void
onInvalidate()
onInvalidate(
callback): () =>void
Defined in: nekte-source/packages/client/src/shared-cache.ts:38
Subscribe to invalidation events
Parameters
callback
(key) => void
Returns
() => void
store()
store():
CacheStore
Defined in: nekte-source/packages/client/src/shared-cache.ts:36
Get the shared backing store