A Toy Leveled Cache in Node.js

I wanted to try an experiment around improving caching performance in Node.js while using redis. One of the ideas I came up with was to build a leveled cache that can work primarily with something in-memory (like eidetic [https://npmjs.com/package/eidetic]), falling back to a secondary cache…