(
method: string,
key: ResultPersistence.Key<R, IE, E, IA, A>,
value: unknown
)
| 241 | const storage = yield* backing.make(options.storeId) |
| 242 | const timeToLive = options.timeToLive ?? (() => Duration.infinity) |
| 243 | const parse = <R, IE, E, IA, A>( |
| 244 | method: string, |
| 245 | key: ResultPersistence.Key<R, IE, E, IA, A>, |
| 246 | value: unknown |
| 247 | ) => |
| 248 | Effect.mapError( |
| 249 | Schema.deserializeExit(key, value), |
| 250 | (_) => PersistenceParseError.make(method, _.issue) |
| 251 | ) |
| 252 | const encode = <R, IE, E, IA, A>( |
| 253 | method: string, |
| 254 | key: ResultPersistence.Key<R, IE, E, IA, A>, |