This is a post for my future self. – Hi future self! (wave).
The following is an easy to use caching function.
The function gets or updates based on results.
The wrapper helps create different cacheExpirations based on needs.
A simple to use caching function that both gets and/or sets the key depending on results.