I\'m working on a web server with an API which calls a function. This function does a heavy job and caches the result. I\'ve designed it in a way that if there is no cache a