Skip to content

Commit 1bcda71

Browse files
committed
confusing api design todo
1 parent 8e6fda7 commit 1bcda71

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ def get_filtered_users(user_ids): # Completely different function, but same log
296296

297297
return [{"id": user_ids[0], "name": "Sam Jones"}, {"id": user_ids[2], "name": "Another Sam Jones"}]
298298

299-
get_filtered_user([1, 2])
299+
get_filtered_user([1, 2]) # after caching this call, we know id=1 links to this and above `get_user_from_auth` call
300300

301301
# In any of your services
302302

@@ -562,6 +562,7 @@ poetry install
562562

563563
## TODO
564564
- [ ] Automatic ORM model detection, @cache.orm()
565+
- [ ] Better api naming. @cache.invalidate_on(entity="user"), or @cache().tracks("user")
565566
- [ ] MyPy Refactory & Cleanup
566567
- [ ] Introduce proper reverse index interface to not lock into Redis OSS comp
567568
- [ ] * By default RedisCompReverser should be used with multi-exec capability

0 commit comments

Comments
 (0)