├── .gitignore ├── .gitmodules ├── .npmignore ├── .pomo ├── History.md ├── Makefile ├── Readme.md ├── bench.js ├── bin └── nedis-server ├── examples └── connect.js ├── index.js ├── lib ├── commands │ ├── connection.js │ ├── hash.js │ ├── index.js │ ├── keys.js │ ├── server.js │ └── string.js ├── connection.js ├── database.js ├── instrument.js ├── nedis.js ├── rewriter.js ├── server.js └── utils.js ├── package.json └── test ├── cases ├── arity.invalid ├── arity.invalid.out ├── command.invalid ├── command.invalid.out ├── decr ├── decr.out ├── decrby ├── decrby.out ├── del ├── del.out ├── echo ├── echo.out ├── exists ├── exists.out ├── get ├── get.out ├── hexists ├── hexists.out ├── hget ├── hget.out ├── hgetall ├── hgetall.out ├── hkeys ├── hkeys.out ├── hlen ├── hlen.out ├── hmset ├── hmset.out ├── hvals ├── hvals.out ├── incr ├── incr.out ├── incrby ├── incrby.out ├── keys ├── keys.out ├── multibulk.error ├── multibulk.error.out ├── parse.error ├── parse.error.out ├── ping ├── ping.out ├── rename ├── rename.out ├── set ├── set.out ├── type └── type.out └── test.js /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tj/nedis/HEAD/.gitignore -------------------------------------------------------------------------------- /.gitmodules: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /.npmignore: -------------------------------------------------------------------------------- 1 | support 2 | test 3 | t.js 4 | nedis.db 5 | -------------------------------------------------------------------------------- /.pomo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tj/nedis/HEAD/.pomo -------------------------------------------------------------------------------- /History.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tj/nedis/HEAD/History.md -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tj/nedis/HEAD/Makefile -------------------------------------------------------------------------------- /Readme.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tj/nedis/HEAD/Readme.md -------------------------------------------------------------------------------- /bench.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tj/nedis/HEAD/bench.js -------------------------------------------------------------------------------- /bin/nedis-server: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tj/nedis/HEAD/bin/nedis-server -------------------------------------------------------------------------------- /examples/connect.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tj/nedis/HEAD/examples/connect.js -------------------------------------------------------------------------------- /index.js: -------------------------------------------------------------------------------- 1 | 2 | module.exports = require('./lib/nedis'); -------------------------------------------------------------------------------- /lib/commands/connection.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tj/nedis/HEAD/lib/commands/connection.js -------------------------------------------------------------------------------- /lib/commands/hash.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tj/nedis/HEAD/lib/commands/hash.js -------------------------------------------------------------------------------- /lib/commands/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tj/nedis/HEAD/lib/commands/index.js -------------------------------------------------------------------------------- /lib/commands/keys.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tj/nedis/HEAD/lib/commands/keys.js -------------------------------------------------------------------------------- /lib/commands/server.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tj/nedis/HEAD/lib/commands/server.js -------------------------------------------------------------------------------- /lib/commands/string.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tj/nedis/HEAD/lib/commands/string.js -------------------------------------------------------------------------------- /lib/connection.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tj/nedis/HEAD/lib/connection.js -------------------------------------------------------------------------------- /lib/database.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tj/nedis/HEAD/lib/database.js -------------------------------------------------------------------------------- /lib/instrument.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tj/nedis/HEAD/lib/instrument.js -------------------------------------------------------------------------------- /lib/nedis.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tj/nedis/HEAD/lib/nedis.js -------------------------------------------------------------------------------- /lib/rewriter.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tj/nedis/HEAD/lib/rewriter.js -------------------------------------------------------------------------------- /lib/server.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tj/nedis/HEAD/lib/server.js -------------------------------------------------------------------------------- /lib/utils.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tj/nedis/HEAD/lib/utils.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tj/nedis/HEAD/package.json -------------------------------------------------------------------------------- /test/cases/arity.invalid: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tj/nedis/HEAD/test/cases/arity.invalid -------------------------------------------------------------------------------- /test/cases/arity.invalid.out: -------------------------------------------------------------------------------- 1 | -ERR wrong number of arguments for 'get' command 2 | -------------------------------------------------------------------------------- /test/cases/command.invalid: -------------------------------------------------------------------------------- 1 | *2 2 | $4 3 | RAWR 4 | $3 5 | foo 6 | -------------------------------------------------------------------------------- /test/cases/command.invalid.out: -------------------------------------------------------------------------------- 1 | -ERR unknown command 'rawr' 2 | -------------------------------------------------------------------------------- /test/cases/decr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tj/nedis/HEAD/test/cases/decr -------------------------------------------------------------------------------- /test/cases/decr.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tj/nedis/HEAD/test/cases/decr.out -------------------------------------------------------------------------------- /test/cases/decrby: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tj/nedis/HEAD/test/cases/decrby -------------------------------------------------------------------------------- /test/cases/decrby.out: -------------------------------------------------------------------------------- 1 | :-6 2 | :-16 3 | -------------------------------------------------------------------------------- /test/cases/del: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tj/nedis/HEAD/test/cases/del -------------------------------------------------------------------------------- /test/cases/del.out: -------------------------------------------------------------------------------- 1 | :0 2 | +OK 3 | $3 4 | bar 5 | :1 6 | $-1 7 | -------------------------------------------------------------------------------- /test/cases/echo: -------------------------------------------------------------------------------- 1 | *2 2 | $4 3 | echo 4 | $9 5 | something 6 | -------------------------------------------------------------------------------- /test/cases/echo.out: -------------------------------------------------------------------------------- 1 | +something 2 | -------------------------------------------------------------------------------- /test/cases/exists: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tj/nedis/HEAD/test/cases/exists -------------------------------------------------------------------------------- /test/cases/exists.out: -------------------------------------------------------------------------------- 1 | :0 2 | +OK 3 | :1 4 | -------------------------------------------------------------------------------- /test/cases/get: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tj/nedis/HEAD/test/cases/get -------------------------------------------------------------------------------- /test/cases/get.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tj/nedis/HEAD/test/cases/get.out -------------------------------------------------------------------------------- /test/cases/hexists: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tj/nedis/HEAD/test/cases/hexists -------------------------------------------------------------------------------- /test/cases/hexists.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tj/nedis/HEAD/test/cases/hexists.out -------------------------------------------------------------------------------- /test/cases/hget: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tj/nedis/HEAD/test/cases/hget -------------------------------------------------------------------------------- /test/cases/hget.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tj/nedis/HEAD/test/cases/hget.out -------------------------------------------------------------------------------- /test/cases/hgetall: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tj/nedis/HEAD/test/cases/hgetall -------------------------------------------------------------------------------- /test/cases/hgetall.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tj/nedis/HEAD/test/cases/hgetall.out -------------------------------------------------------------------------------- /test/cases/hkeys: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tj/nedis/HEAD/test/cases/hkeys -------------------------------------------------------------------------------- /test/cases/hkeys.out: -------------------------------------------------------------------------------- 1 | +OK 2 | *2 3 | $4 4 | name 5 | $5 6 | email 7 | -------------------------------------------------------------------------------- /test/cases/hlen: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tj/nedis/HEAD/test/cases/hlen -------------------------------------------------------------------------------- /test/cases/hlen.out: -------------------------------------------------------------------------------- 1 | +OK 2 | :2 3 | -------------------------------------------------------------------------------- /test/cases/hmset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tj/nedis/HEAD/test/cases/hmset -------------------------------------------------------------------------------- /test/cases/hmset.out: -------------------------------------------------------------------------------- 1 | +OK 2 | $2 3 | tj 4 | $4 5 | tobi 6 | -------------------------------------------------------------------------------- /test/cases/hvals: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tj/nedis/HEAD/test/cases/hvals -------------------------------------------------------------------------------- /test/cases/hvals.out: -------------------------------------------------------------------------------- 1 | +OK 2 | *2 3 | $2 4 | tj 5 | $4 6 | tobi 7 | -------------------------------------------------------------------------------- /test/cases/incr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tj/nedis/HEAD/test/cases/incr -------------------------------------------------------------------------------- /test/cases/incr.out: -------------------------------------------------------------------------------- 1 | :1 2 | :1 3 | :2 4 | :3 5 | :4 6 | -------------------------------------------------------------------------------- /test/cases/incrby: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tj/nedis/HEAD/test/cases/incrby -------------------------------------------------------------------------------- /test/cases/incrby.out: -------------------------------------------------------------------------------- 1 | :6 2 | :16 3 | -------------------------------------------------------------------------------- /test/cases/keys: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tj/nedis/HEAD/test/cases/keys -------------------------------------------------------------------------------- /test/cases/keys.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tj/nedis/HEAD/test/cases/keys.out -------------------------------------------------------------------------------- /test/cases/multibulk.error: -------------------------------------------------------------------------------- 1 | **3 2 | -------------------------------------------------------------------------------- /test/cases/multibulk.error.out: -------------------------------------------------------------------------------- 1 | -ERR Protocol error: number expected after * 2 | -------------------------------------------------------------------------------- /test/cases/parse.error: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tj/nedis/HEAD/test/cases/parse.error -------------------------------------------------------------------------------- /test/cases/parse.error.out: -------------------------------------------------------------------------------- 1 | -ERR Protocol error: failed to parse request 2 | -------------------------------------------------------------------------------- /test/cases/ping: -------------------------------------------------------------------------------- 1 | *1 2 | $4 3 | PING 4 | -------------------------------------------------------------------------------- /test/cases/ping.out: -------------------------------------------------------------------------------- 1 | +PONG 2 | -------------------------------------------------------------------------------- /test/cases/rename: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tj/nedis/HEAD/test/cases/rename -------------------------------------------------------------------------------- /test/cases/rename.out: -------------------------------------------------------------------------------- 1 | +OK 2 | +OK 3 | $-1 4 | $9 5 | something 6 | :1 7 | -------------------------------------------------------------------------------- /test/cases/set: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tj/nedis/HEAD/test/cases/set -------------------------------------------------------------------------------- /test/cases/set.out: -------------------------------------------------------------------------------- 1 | +OK 2 | -------------------------------------------------------------------------------- /test/cases/type: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tj/nedis/HEAD/test/cases/type -------------------------------------------------------------------------------- /test/cases/type.out: -------------------------------------------------------------------------------- 1 | +OK 2 | +none 3 | +string 4 | :1 5 | +hash 6 | -------------------------------------------------------------------------------- /test/test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tj/nedis/HEAD/test/test.js --------------------------------------------------------------------------------