mirror of
https://github.com/Effect-TS/effect.git
synced 2026-11-27 02:25:36 +08:00
11 lines
231 B
TypeScript
11 lines
231 B
TypeScript
import * as Cache from "#dist/effect/Cache"
|
|
import * as Effect from "#dist/effect/Effect"
|
|
|
|
Cache.make({
|
|
capacity: 1024,
|
|
lookup: (key: string) => Effect.succeed(key)
|
|
}).pipe(
|
|
Effect.flatMap(Cache.get("1")),
|
|
Effect.runFork
|
|
)
|