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

Function toJSON

packages/effect/src/Cache.ts:314–320  ·  view source on GitHub ↗
(this: Cache<any, any, any>)

Source from the content-addressed store, hash-verified

312 ...PipeInspectableProto,
313 [TypeId]: TypeId,
314 toJSON(this: Cache<any, any, any>) {
315 return {
316 _id: "Cache",
317 capacity: this.capacity,
318 map: this.map
319 }
320 }
321}
322
323const defaultTimeToLive = <A, E>(_: Exit.Exit<A, E>, _key: unknown): Duration.Duration => Duration.infinity

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected