North-Seattle-College / ad440-winter2021-thursday-repo

NSC AD 440 Winter 2021 Thursday cohort practicum repo
Apache License 2.0
2 stars 27 forks source link

[Task] Invalidate Redis Cache for users/userID/tasks on POST, Add flag to disable cache #188

Closed kieranmiguel closed 3 years ago

kieranmiguel commented 3 years ago

Is your feature request related to a problem? Please describe. Currently, my cache invalidates after 20 seconds, I would like the cache to instead, invalidate on a POST to promote use of this resource

Describe the solution you'd like Every post request will also invalidate the cache. Add feature flag to turn off Cache.

Describe alternatives you've considered I was also thinking about update and post requests from other functions, for example, if a task were to be updated, from users/userID/tasks/{taskID} it should also invalidate the cache

kieranmiguel commented 3 years ago

Time Spent 2/25/21 | Adding redis Expire | 20 Minutes 2/27/21 | Adding redis feature flag boolean | 1 hour 2/28/21 | Fixing rDB being passed incorrectly bug | 30 Mins