Merge commit '36c66dd290d3ce6eb1ccd310d0c658d4a32bb8eb' as 'repos/effect'
This commit is contained in:
10
repos/effect/packages/tools/bundle/fixtures/cache.ts
Normal file
10
repos/effect/packages/tools/bundle/fixtures/cache.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
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
|
||||
)
|
||||
Reference in New Issue
Block a user