hyper63 / hyper63/hyper-ext-model
feature: add cache with modes
Open
extension
- Dominant language
- TypeScript
- Stars
- 0
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
```js
const profiles = hyper.ext.model({name: 'profile', cache: true, mode: 'atomic', schema: ...})
```
- [ ] cache mode atomic, if an error occurs trying to write to cache then don't write to data and return ie Rollback
- [ ] cache mode non-atomic, if error occurs trying to write to cache then write to data, but return indicator cache failied, but data save succeeded.
- [ ] handle atomic mode for remove as well.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.