Init
This commit is contained in:
11
Career/Projects/Model cache/Model cache.md
Normal file
11
Career/Projects/Model cache/Model cache.md
Normal file
@@ -0,0 +1,11 @@
|
||||
A cache tied to the model, is automatically clear when saving. This allows for caching without much thinking about cache invalidation.
|
||||
## Usage
|
||||
Call the model cache method on the model to access it
|
||||
## Todo
|
||||
- [x] Create a class which implements the cache methods and tags all caches. ✅ 2023-10-28
|
||||
- [x] Create a trait which allows for access to this cache and clears is on saved. ✅ 2023-10-28
|
||||
- [x] Add readme about usage. ✅ 2023-11-05
|
||||
- [ ] Allow for the adding of other tags, so the cache can store values dependent on multiple models.
|
||||
- [ ] Make the cache macroable so complex callbacks and tag configurations can defined just once. Add a cache()->toArray() example.
|
||||
- [ ] Add a class factory as a place to store these macros.
|
||||
|
||||
Reference in New Issue
Block a user