sailfork / t3code-github / .repos/ effect/ packages/ tools/ bundle/ fixtures/ cache.ts

import * as Cache from "effect/Cache"
import * as Effect from "effect/Effect"

Cache.make({
  capacity: 1024,
  lookup: (key: string) => Effect.succeed(key)
}).pipe(
  Effect.flatMap(Cache.get("1")),
  Effect.runFork
)