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

Function evalSha

packages/effect/src/unstable/persistence/Redis.ts:72–78  ·  view source on GitHub ↗
(sha: string)

Source from the content-addressed store, hash-verified

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(

Callers

nothing calls this directly

Calls 4

sendMethod · 0.80
toStringMethod · 0.65
StringInterface · 0.50
mapMethod · 0.45

Tested by

no test coverage detected