MCPcopy Index your code
hub / github.com/Effect-TS/effect / getEither

Method getEither

packages/effect/src/Cache.ts:73–73  ·  view source on GitHub ↗

* Retrieves the value associated with the specified key if it exists as a left. * Otherwise computes the value with the lookup function, puts it in the * cache, and returns it as a right.

(key: Key)

Source from the content-addressed store, hash-verified

71 * cache, and returns it as a right.
72 */
73 getEither(key: Key): Effect.Effect<Either<Value, Value>, Error>
74
75 /**
76 * Computes the value associated with the specified key, with the lookup

Callers 2

fromRequestFunction · 0.65
cacheRequestFunction · 0.65

Implementers 1

CacheImplpackages/effect/src/internal/cache.ts

Calls

no outgoing calls

Tested by

no test coverage detected