getCacheEvents
import { getCacheEvents } from "@hyper-fetch/core"
Description
Defined in cache/cache.events.ts:6
Preview
getCacheEvents(emitter)
Parameters
Name | Details |
---|---|
emitter
|
|
Returns
{
emitCacheData: (cacheKey: string, data: CacheValueType<Response, Error, Adapter>) => void;
emitRevalidation: (cacheKey: string) => void;
onData: (cacheKey: string, callback: (data: CacheValueType<Response, Error, Adapter>) => void) => VoidFunction;
onRevalidate: (cacheKey: string, callback: () => void) => VoidFunction;
}