-
-
Notifications
You must be signed in to change notification settings - Fork 523
Open
Labels
bugSomething isn't workingSomething isn't working
Description
What version of Effect is running?
3.19.19
What steps can reproduce the bug?
This should be possible:
const doToolCall: Effect.Effect<string, never, MyDeps>
const cache = Effect.runSync(
Cache.make({
capacity: 1000,
timeToLive: '5 minutes',
lookup: (_key: ToolCallCacheKey) => doToolCall,
}),
)
Making the cache doesn't need MyDeps, doing the lookups does.
What is the expected behavior?
Cache.make should look like:
export const make: <Key, Value, Error = never, Environment = never>(
options: {
readonly capacity: number
readonly timeToLive: Duration.DurationInput
readonly lookup: Lookup<Key, Value, Error, Environment>
}
) => Effect.Effect<Cache<Key, Value, Error>, never, never>
What do you see instead?
No response
Additional information
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working