{"library":"redis-evalsha","type":"library","category":null,"description":"Shavaluator wrapper around Redis EVALSHA/EVAL for efficient Lua script execution. Version 1.1.1 is latest (stable). Provides a simple API to pre-register Lua scripts with SHA-1 hashes, automatically falling back from EVALSHA to EVAL if the script is not cached on the Redis server. Avoids recomputing SHA-1 on every call (unlike node-redis's built-in eval). Designed for the node-redis client (mranney/node-redis). Lightweight: zero runtime dependencies. No TypeScript types.","language":"javascript","status":"active","version":"1.1.1","tags":["javascript","redis","lua","eval","evalsha"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install redis-evalsha","imports":["const Shavaluator = require('redis-evalsha')","const Shavaluator = require('redis-evalsha'); const shav = new Shavaluator(redisClient)","shav.exec('scriptName', ['key1'], ['arg1'], callback)"]},{"cmd":"yarn add redis-evalsha","imports":[]},{"cmd":"pnpm add redis-evalsha","imports":[]}],"homepage":"https://github.com/andrewrk/shavaluator-js","github":"http://github.com/andrewrk/shavaluator-js","docs":null,"changelog":null,"pypi":null,"npm":"redis-evalsha","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}