(sha: string)
| 70 | ) => |
| 71 | (...params: Config["params"]): Effect.Effect<Config["result"], RedisError> => { |
| 72 | const evalSha = (sha: string) => |
| 73 | options.send<Config["result"]>( |
| 74 | "EVALSHA", |
| 75 | sha, |
| 76 | script.numberOfKeys(...params).toString(), |
| 77 | ...script.params(...params).map((param) => String(param)) |
| 78 | ) |
| 79 | return Cache.get(scriptCache, script).pipe( |
| 80 | Effect.flatMap(evalSha), |
| 81 | Effect.catchIf( |