(self: ScopedCache<Key, A, E, R>, key: Key, entry: Entry<A, E>)
| 368 | } |
| 369 | |
| 370 | const removeEntry = <Key, A, E, R>(self: ScopedCache<Key, A, E, R>, key: Key, entry: Entry<A, E>): void => { |
| 371 | if (self.state._tag !== "Open") return |
| 372 | const current = MutableHashMap.get(self.state.map, key) |
| 373 | if (Option.isSome(current) && current.value === entry) MutableHashMap.remove(self.state.map, key) |
| 374 | } |
| 375 | |
| 376 | const hasExpired = <A, E>(entry: Entry<A, E>, fiber: Fiber.Fiber<unknown, unknown>): boolean => { |
| 377 | if (entry.expiresAt === undefined) { |
no test coverage detected