mirror of
https://github.com/Effect-TS/effect.git
synced 2026-12-02 03:15:52 +08:00
11 lines
239 B
TypeScript
11 lines
239 B
TypeScript
import * as Cache from "#dist/effect/caching/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
|
|
)
|