stetsmando/simple-cache

Bulk operations

Closed this issue · 0 comments

It would be nice if you could issue bulk cache/get/remove commands so you don't have to repeat yourself like:

const someVar = simpleCache.get('myValue');
const someOtherVar = simpleCache.get('myOtherValue');

But rather maybe something like:

const { someVar, someOtherVar } = simpleCache.get(['myValue', 'myOtherValue']);