Files
zopu-code/repos/effect/packages/tools/bundle/fixtures/cache.ts

11 lines
219 B
TypeScript

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
)