(key: Key)
| 338 | } |
| 339 | |
| 340 | getOption(key: Key): Effect.Effect<Option.Option<Value>, Error> { |
| 341 | return core.suspend(() => |
| 342 | Option.match(MutableHashMap.get(this.cacheState.map, key), { |
| 343 | onNone: () => { |
| 344 | const mapKey = makeMapKey(key) |
| 345 | this.trackAccess(mapKey) |
| 346 | this.trackMiss() |
| 347 | return core.succeed(Option.none<Value>()) |
| 348 | }, |
| 349 | onSome: (value) => this.resolveMapValue(value) |
| 350 | }) |
| 351 | ) |
| 352 | } |
| 353 | |
| 354 | getOptionComplete(key: Key): Effect.Effect<Option.Option<Value>> { |
| 355 | return core.suspend(() => |
nothing calls this directly
no test coverage detected