(key: string, _: any)
| 30 | (store) => Effect.promise(() => store.close()) |
| 31 | ) |
| 32 | const valueToOption = (key: string, _: any) => { |
| 33 | if (!Arr.isArray(_)) return Option.none() |
| 34 | const [value, expires] = _ as [unknown, number | null] |
| 35 | if (expires !== null && expires <= clock.unsafeCurrentTimeMillis()) { |
| 36 | store.remove(key) |
| 37 | return Option.none() |
| 38 | } |
| 39 | return Option.some(value) |
| 40 | } |
| 41 | return identity<Persistence.BackingPersistenceStore>({ |
| 42 | get: (key) => |
| 43 | Effect.try({ |
no test coverage detected