mirror of
https://github.com/VibedByKaKi/t3-code-android-nightly.git
synced 2026-10-11 12:51:15 +02:00
10 lines
219 B
TypeScript
10 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
|
|
)
|