MCPcopy Create free account
hub / github.com/Openpanel-dev/openpanel / firstFn

Function firstFn

packages/redis/cachable.test.ts:263–266  ·  view source on GitHub ↗
(arg1: string)

Source from the content-addressed store, hash-verified

261 it('should serve cached empty array from Redis on a fresh instance (no L1)', async () => {
262 let firstCallCount = 0;
263 const firstFn = async (arg1: string) => {
264 firstCallCount++;
265 return [] as number[];
266 };
267
268 // First instance writes the empty array into Redis
269 const firstCachedFn = cacheable('sharedEmptyArrayFn', firstFn, 3600, {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected