Zache: A Simple Ruby In-Memory Cache
- 291 words
- 1 minutes to read
- comments
A month ago I stumbled upon a problem: I wasn’t able to find a Ruby gem which would do in-memory caching with the capability to expire on timeout. After some quick research I decided to implement my own and called it Zache (as in “zero cache,” since there is no back end). Here is how it works:
