MCPcopy
hub / github.com/Effect-TS/effect / getOption

Method getOption

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

* Retrieves the value associated with the specified key if it exists. * Otherwise returns `Option.none`.

(key: Key)

Source from the content-addressed store, hash-verified

105 * Otherwise returns `Option.none`.
106 */
107 getOption(key: Key): Effect.Effect<Option.Option<Value>, Error>
108
109 /**
110 * Retrieves the value associated with the specified key if it exists and the

Callers 15

makeWithTransactionFunction · 0.65
cliApp.tsFile · 0.65
McpServer.tsFile · 0.65
processAnnotationFunction · 0.65
makeSecuritySchemeFunction · 0.65
toHttpAppFunction · 0.65
executeAcquireFunction · 0.65
Context.test.tsFile · 0.65
serviceOptionFunction · 0.65
encodeDefaultFunction · 0.65
encodeExamplesFunction · 0.65

Implementers 1

CacheImplpackages/effect/src/internal/cache.ts

Calls

no outgoing calls

Tested by

no test coverage detected