Skip to content

adriandulic/node.restredis.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

node.restredis.js

node.restredis.js is a node.js server that stores and retrieves keys with HTTP methods (POST, GET, PUT, DELETE).

It prefixes the keys with value of "host" from HTTP header.

npm

$ npm install redis

Example

$ curl -X POST -d "value" zordon.example.com/test
=> OK

$ curl zordon.example.com/test
=> value

$ curl -X POST -d "other value" godzilla.example.com/test
=> OK

$ curl godzilla.example.com/test
=> other value

$ curl zordon.example.com/test
=> value

$ curl -X PUT -d "Japan!" godzilla.example.com/test
=> OK

$ curl -X DELETE godzilla.example.com/test
=> OK

$ curl -X DELETE godzilla.example.com/non-existent
=> Specified key does not exist

About

node.js RESTful server for Redis

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published