Skip to content

Latest commit

History

20 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

HttPRedis

A HTTP wrapper for ioredis

Install

npm install httpedis

Usage

constconfig={// Redis properties REDIS_HOST: "localhost",REDIS_PORT: 6379,REDIS_AUTH: "mypassword",REDIS_DB: 0,// Server portHTTP_PORT: 9001};constHttpedis=require('httpedis');consthttpedis=newHttpedis(config);// Starts the serverhttpedis.start(optionalCallback);// Reloading redis connection httpedis.reload({REDIS_DB: 1});// Stopping server httpedis.stop(optionalCallback)

Enjoy

curl -X PUT -d '{"foo": "bar"}'"localhost:9001/set/foo" curl "localhost:9001/get/foo" {"foo": "bar"}
curl "localhost:9001/keys/*" ["foo"]
curl "localhost:9001/scan/*?cursor=0&count=100" ["foo"]

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages