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

Method entries

packages/effect/src/internal/cache.ts:541–551  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

539 }
540
541 get entries(): Effect.Effect<Array<[Key, Value]>> {
542 return core.sync(() => {
543 const values: Array<[Key, Value]> = []
544 for (const entry of this.cacheState.map) {
545 if (entry[1]._tag === "Complete" && entry[1].exit._tag === "Success") {
546 values.push([entry[0], entry[1].exit.value])
547 }
548 }
549 return values
550 })
551 }
552
553 get keys(): Effect.Effect<Array<Key>> {
554 return core.sync(() => {

Callers 15

httpClient.tsFile · 0.80
makeMemoryFunction · 0.80
makeFunction · 0.80
makeFunction · 0.80
allFunction · 0.80
allFunction · 0.80
allFunction · 0.80
makeFunction · 0.80
addSpanAttributesFunction · 0.80
McpServerClass · 0.80
McpServer.tsFile · 0.80
registerPromptFunction · 0.80

Calls 1

syncMethod · 0.80

Tested by

no test coverage detected