drizzle-team / drizzle-team/drizzle-orm
[FEATURE]: [$withCache] Allow initial value of isAutoInvalidate to be managed in cache class
Open
enhancement
- Dominant language
- TypeScript
- Stars
- 35.8k
- Forks
- 1.6k
- Avg merge
- 2d 7h
- Merged PRs (30d)
- 4
Description
I am trying the newly implemented cache feature as soon as possible.
Thank you so much for implementing this wonderful feature. 🙏
### Feature hasn't been suggested before.
- [x] I have verified this feature I'm about to request hasn't been suggested before.
### Describe the enhancement you want to request
Currently, when $withCache is executed with no arguments, the get method of the Cache class receives `isAutoInvalidate: true`.
If we change this behavior to receive `isAutoInvalidate: undefined`, I think we can control when isAutoInvalidate is not specified on the Cache class side.
What do you think?
Contributor guide
Assessment
This issue has not been assessed yet.