redis-script
A redis lua script manager with the following features:
- minimalist api
- lua script caching
- automatic reloading of corrupted or deleted script cache
How to install
npm install redis-script --save
How to use
var RedisScript = ; //creates a redis connection at port 6379 of `127.0.0.1`var rs = ; //accepts a redis connectionvar rs = conn; //add a lua script filers; //add a lua scriptrs; //add all lua script files inside a directoryrs; //load and execute lua scriptsrs;rs;rs;rs;rs;
License
MIT