Bredis is a Redis-like database with similar functions and an HTTP API.
cargo install bredisbredis runcurl http://localhost:4123/keys/mykeycurl http://localhost:4123/keys?prefix=mycurl -X POST -H "Content-Type: application/json" -d "{\"key\":\"mykey\",\"value\":\"myvalue\"}" http://localhost:4123/keyscurl -X POST -H "Content-Type: application/json" -d "{\"key\":\"mykey\",\"value\":\"myvalue\",\"ttl\":10}" http://localhost:4123/keyscurl -X DELETE http://localhost:4123/keys/mykeycurl -X DELETE -H "Content-Type: application/json" -d "{\"prefix\":\"my\"}" http://localhost:4123/keyscurl -X DELETE http://localhost:4123/keyscurl http://localhost:4123/keys/mykey/ttlcurl -X POST -H "Content-Type: application/json" -d "{\"key\":\"mykey\",\"ttl\":10}" http://localhost:4123/keys/ttlcurl -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?)