MCPcopy Create free account
hub / github.com/cameri/nostream / getCache

Function getCache

src/factories/message-handler-factory.ts:16–21  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

14
15let cacheAdapter: ICacheAdapter | undefined = undefined
16const getCache = (): ICacheAdapter => {
17 if (!cacheAdapter) {
18 cacheAdapter = new RedisAdapter(getCacheClient())
19 }
20 return cacheAdapter
21}
22
23export const messageHandlerFactory =
24 (

Callers 1

messageHandlerFactoryFunction · 0.85

Calls 1

getCacheClientFunction · 0.90

Tested by

no test coverage detected