1.0.1 • Published 6 years ago
redis-dev-server v1.0.1
redis-dev-server
Non-production minimal redis server supporting a small subset of redis commands
Usage
npm install redis-dev-server
node . [ -a address ] [ -p port ] [ -i save_interval | -n ] [ -e expire_interval ] [ persist_filename ]Supported commands
INFO- responds with+OKPING- responds with+PONGCLIENTSETNAME name- will use this name in logging
GETNAME
SELECT 0- only db index zero is allowedDBSIZEFLUSHALLFLUSHDB- same asFLUSHALLas there is only one dbSET key value [ EX ttl_seconds | PX ttl_milliseconds ] [ NX | XX ]SETEX key ttl_seconds valuePSETEX key ttl_milliseconds valueMSET key value [ key value ... ]MSETNX key value [ key value ... ]EXISTS keyTYPE key- always returnsstringfor existing keysGET keyMGET key [ key ... ]EXPIRE key ttl_secondsPEXPIRE key ttl_millisecondsEXPIREAT key unix_timestampTTL keyPTTL keyDEL keyKEYS patternSCAN cursor [ COUNT count ] [ MATCH pattern ]QUITSAVEDUMPALL- outputs SET commands that would recreate the current dataset - used for persisting data
Auto-persist
The server auto saves the current dataset to a file called persist.db.
This can be disabled with the -n or --no-save command line option
1.0.1
6 years ago