DEV Community

Discussion on: Keep Calm and Cache On

Collapse
 
manchicken profile image
Mike Stemle

Caching deterministic functions like this is great fun. For larger applications of this caching method, or to distribute the cache, you can also employ memcached or Redis.

What a fun read, thank you so much.

Collapse
 
polakshahar profile image
Shahar Polak

Hi Michael,

I agree with you! We are using Redis in production exactly for this purpose.
Of course there are many other ways to accomplish this.

It was my intention to explain how to do it in a very simple and easy way, without diving too deep to implementations where the memory is cashed, timeouts and so on.

I’m so happy to hear that you enjoyed itπŸ€—