1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889 |
- {
- "_args": [
- [
- "redis-lua2@~1.0.2",
- "D:\\work\\im"
- ]
- ],
- "_from": "redis-lua2@>=1.0.2 <1.1.0",
- "_id": "redis-lua2@1.0.2",
- "_inCache": true,
- "_installable": true,
- "_location": "/redis-lua2",
- "_npmUser": {
- "email": "npm@fgribreau.com",
- "name": "fgribreau"
- },
- "_npmVersion": "1.1.49",
- "_phantomChildren": {},
- "_requested": {
- "name": "redis-lua2",
- "raw": "redis-lua2@~1.0.2",
- "rawSpec": "~1.0.2",
- "scope": null,
- "spec": ">=1.0.2 <1.1.0",
- "type": "range"
- },
- "_requiredBy": [
- "/"
- ],
- "_resolved": "https://registry.npmjs.org/redis-lua2/-/redis-lua2-1.0.2.tgz",
- "_shasum": "d096fb5284ac728e1b4ed9a56f66023528f19296",
- "_shrinkwrap": null,
- "_spec": "redis-lua2@~1.0.2",
- "_where": "D:\\work\\im",
- "author": {
- "email": "npm@fgribreau.com",
- "name": "Francois-Guillaume Ribreau",
- "url": "http://fgribreau.com"
- },
- "bugs": {
- "url": "https://github.com/FGRibreau/node-redis-lua/issues"
- },
- "dependencies": {
- "lodash": "~0.7.0"
- },
- "description": "Adds lua scripting to node_redis",
- "devDependencies": {},
- "directories": {},
- "dist": {
- "shasum": "d096fb5284ac728e1b4ed9a56f66023528f19296",
- "tarball": "https://registry.npmjs.org/redis-lua2/-/redis-lua2-1.0.2.tgz"
- },
- "engines": {
- "node": "*"
- },
- "files": [
- "README",
- "redis-lua.js",
- "package.json"
- ],
- "homepage": "https://github.com/FGRibreau/node-redis-lua",
- "keywords": [
- "redis",
- "scripting",
- "lua"
- ],
- "licenses": [
- {
- "type": "MIT",
- "url": "http://opensource.org/licenses/mit-license.php"
- }
- ],
- "main": "./redis-lua.js",
- "maintainers": [
- {
- "email": "npm@fgribreau.com",
- "name": "fgribreau"
- }
- ],
- "name": "redis-lua2",
- "optionalDependencies": {},
- "readme": "Fork of **node_redis_lua** by shirro\n====================================\n\nPatch redis script commands into node-redis prototype.\n\n## Npm\n\n npm install redis-lua2\n\n## Usage\nFirst attach `redis-lua` to `node_redis`:\n\n redis = require('redis');\n require('redis-lua2').attachLua(redis)\n\nThen define some scripts (scripts may take an _unlimited_ number of arguments):\n\n redis.lua('myset', 'return redis.call(\"set\", KEYS[1], KEYS[2])');\n\nIf the last parameter is set to `true` the command result will be converted to a JavaScript\nobject literal:\n\n redis.lua('hashtest, 0, 'return redis.call(\"hgetall\", \"something\")', true);\n\nFinally create a redis client and call the script like a regular redis command:\n\n r = redis.createClient();\n r.myset(2, 'testing', 'surprise', redis.print);\n\nNote: `2` is the number of keys that the script will receive. Arrays are also supported:\n\n var args = ['testing', 'surprise']\n , r = redis.createClient();\n r.myset(args.length, args, function(err, res){console.log(arguments)});\n\nThe lua script will be passed by `eval` the first time and subsequent calls by `evalsha`.\n",
- "repository": {
- "type": "git",
- "url": "git://github.com/FGRibreau/node-redis-lua.git"
- },
- "version": "1.0.2"
- }
|