Skip to content
Source
Sign inSign up
Open History to see the last commit

cache.ts

10 lines219 Bytes

1import * as Cache from "effect/Cache"
2import * as Effect from "effect/Effect"
3​
4Cache.make({
5 capacity: 1024,
6 lookup: (key: string) => Effect.succeed(key)
7}).pipe(
8 Effect.flatMap(Cache.get("1")),
9 Effect.runFork