mem (Redis version)
A function wrapper for mem
module which use redis for the cache store. All parameters same as mem
module but you can't select the cache store.
Install
$ npm install --save mem-redis
Usage
const mem = ; mem; // if you setted the connection string at `process.env.REDIS_CONNECTION_STRING`, ignore it let test = { let count = 0; return { return count++; };}; test = ; // Cache for 5 seconds void { await ; // return 0 await ; // return 0 because the the result has cached await ; // return 1 and the result has been cached };
ToDo List
A clear declaration file for this module.
License
This software is released under the MIT license. See the license file for more details.