MCPcopy Create free account
hub / github.com/Effect-TS/effect / sendWith

Function sendWith

packages/platform/node/src/NodeRedis.ts:115–120  ·  view source on GitHub ↗
(client: NodeRedisClient)

Source from the content-addressed store, hash-verified

113
114 const sendWith =
115 (client: NodeRedisClient) =>
116 <A = unknown>(command: string, ...args: ReadonlyArray<string>): Effect.Effect<A, Redis.RedisError> =>
117 Effect.tryPromise({
118 try: () => client.sendCommand([command, ...args]) as Promise<A>,
119 catch: (cause) => new Redis.RedisError({ cause })
120 })
121
122 const redis = yield* Redis.make({
123 send: sendWith(client),

Callers 1

NodeRedis.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected