MCPcopy Create free account
hub / github.com/boringstack-xyz/boringstack / wrap

Method wrap

apps/api/src/lib/cache/providers/noop.ts:38–44  ·  view source on GitHub ↗
(
    _key: string,
    factory: () => Promise<T>,
    _options?: ICacheSetOptions
  )

Source from the content-addressed store, hash-verified

36 }
37
38 wrap<T>(
39 _key: string,
40 factory: () => Promise<T>,
41 _options?: ICacheSetOptions
42 ): Promise<T> {
43 return factory();
44 }
45
46 close(): Promise<void> {
47 return Promise.resolve();

Callers 4

valkey.test.tsFile · 0.45
memory.test.tsFile · 0.45
noop.test.tsFile · 0.45

Calls 1

factoryFunction · 0.50

Tested by

no test coverage detected