(client: NodeRedisClient)
| 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), |