Skip to content

A small package to manage redis EVAL SCRIPT caching and EVALSHA calling

License

Notifications You must be signed in to change notification settings

constb/node-redis-eval

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

node-redis-eval Build Status

A small package to help calling lua scripts in Redis. It manages caching the script in the redis instance and caches the sha1 hash locally; also, it checks to see if the redis has already cached this script before sending it.

Usage

Install:

npm install redis-eval --save

In Code:

var redis = require('redis')
  client = redis.createClient(),
  reval = require('redis-eval'),
  script = __dirname + '/myluascript.lua';

reval(client, script, ['key1', 'key2'], ['arg1', 'arg2'], callback);

License

See LICENSE

About

A small package to manage redis EVAL SCRIPT caching and EVALSHA calling

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 97.9%
  • Lua 2.1%