MCPcopy Create free account
hub / github.com/effect-app/libs / createClient

Function createClient

packages/infra/src/redis-client.ts:110–116  ·  view source on GitHub ↗
(makeClient: () => Client)

Source from the content-addressed store, hash-verified

108 Layer.effect(RedisClient, makeRedisClient(makeRedis(storageUrl)))
109
110function createClient(makeClient: () => Client) {
111 const client = makeClient()
112 client.on("error", (error) => {
113 console.error(error)
114 })
115 return client
116}
117
118function makeRedis(storageUrl: string) {
119 const url = new URL(storageUrl)

Callers 2

makeRedisClientFunction · 0.85
makeRedisFunction · 0.85

Calls 3

errorMethod · 0.80
makeClientFunction · 0.50
onMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…