Bredis is a Redis-like database with similar functions and an HTTP API.
cargo install bredis
bredis run
curl http://localhost:4123/keys/mykey
curl http://localhost:4123/keys?prefix=my
curl -X POST -H "Content-Type: application/json" -d "{\"key\":\"mykey\",\"value\":\"myvalue\"}" http://localhost:4123/keys
curl -X POST -H "Content-Type: application/json" -d "{\"key\":\"mykey\",\"value\":\"myvalue\",\"ttl\":10}" http://localhost:4123/keys
curl -X DELETE http://localhost:4123/keys/mykey
curl -X DELETE -H "Content-Type: application/json" -d "{\"prefix\":\"my\"}" http://localhost:4123/keys
curl -X DELETE http://localhost:4123/keys
curl http://localhost:4123/keys/mykey/ttl
curl -X POST -H "Content-Type: application/json" -d "{\"key\":\"mykey\",\"ttl\":10}" http://localhost:4123/keys/ttl
curl -X POST -H "Content-Type: application/json" -d "{\"key\":\"mykey, \"ttl\":-1}" http://localhost:4123/keys/ttl
- Add EXPIRE and TTL operations
- Add pure in-memory rust backend
- Support stream protocol (websocks, protobuf, resp?)