Registry / database / node-redis-scripty

node-redis-scripty

JSON →
library0.0.6jsnpmunverified

This package is deprecated and unmaintained. It provided a Redis script manager for Node.js, allowing loading and caching of Lua scripts using SHA1 digests with an LRU cache, and automatic detection of script cache flushes. The current stable version is 0.0.6, which was the last release. The project has been renamed to node-redis-script and is no longer supported. Users should migrate to the new package.

npm install node-redis-scripty
INSTALL
IMPORT
SIG · NODE-REDIS-SCRIPTY
N
node-redis-scripty
databasejavascriptv0.0.6
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Scripty
var Scripty = require('node-redis-scripty');
import Scripty from 'node-redis-scripty';
Package does not support ES modules; use CommonJS require.

Shows how to create a Scripty instance, load a Lua script, and run it with arguments.

var redis = require('redis').createClient(); var Scripty = require('node-redis-scripty'); var src = 'return KEYS[1]'; var scripty = new Scripty(redis); scripty.loadScript('blank', src, function(err, script) { script.run(1, 'hi', function(err, result) { if (err) return; // Should print 'hi' console.log(result); }); });
Debug
Known issues
deprecatedThis package is deprecated and will no longer receive updates. Use node-redis-script instead.
fix
Migrate to https://github.com/TheDeveloper/node-redis-script
affects: >=0.0.0
breakingScripty expects node-redis compatible with v0.10. Newer versions of node-redis may not work correctly.
fix
Use node-redis v0.10.x or verify compatibility.
affects: >=0.0.0
gotchaScripty uses an LRU cache local to the process; if multiple processes share the same Redis, each process caches separately.
fix
No fix; design limitation.
affects: >=0.0.0
Errors
Common errors & fixes
Cannot find module 'node-redis-scripty'
Package is deprecated and may not be installed; also, mistyping the package name.
fix
Install using npm install node-redis-scripty (note: deprecated) or switch to node-redis-script.
Scripty is not a constructor
Using ES module import syntax instead of CommonJS require.
fix
Use require('node-redis-scripty') instead of import.
Upgrade
Version history
0.0.6latest on npm
Audit
Dependencies
redisrequiredRequired peer dependency to connect to Redis and execute scripts.
Agent activity
5 hits · last 30 days
node
4
Resources
node-redis-scripty — npm install node-redis-scripty · libregistry