hyper63 / hyper63/hyper-ext-model

feature: add cache with modes

Open
#6 0 comments 0 reactions 1 assignee Claimed by @twilson63 View on GitHub
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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.