Fork of the original redis-scripto (by Arunoda) that provides an intelligent Lua script manager for Redis and Node.js. Version 0.2.2 is the latest stable release; it is a drop-in replacement that updates dependencies to work with modern Node.js (>= 0.8.x). Key differentiators: automatically loads scripts via SCRIPT LOAD and uses EVALSHA when possible to minimize network transfer; reverts to EVAL if connection drops; supports loading scripts from directory, file, or object. No major changes from the original package.
npm install redis-scripto2No compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Initialize Scripto, load Lua scripts from a directory or inline object, and run a script using run().
Ensure redis client auto-reconnect is enabled; Scripto handles SHA re-registration automatically.
Only place .lua files in the scripts directory.
Migrate to redis-scripto2 by simply changing the require path.
Scripto automatically reloads scripts; ensure you are using the instance that handles reconnection, or manually call scriptManager.load(scripts) again.
Ensure you use `require('redis-scripto2')` correctly and instantiate with `new Scripto(client)`.Enable redis client auto-reconnect (default in node_redis). Scripto will re-register SHAs after reconnection.
No dependency data recorded yet.