![](https://private-user-images.githubusercontent.com/1702003/323067481-f046fac9-f25f-4f9e-8aa2-fbca414df8e4.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQ3Njg0NDksIm5iZiI6MTcyNDc2ODE0OSwicGF0aCI6Ii8xNzAyMDAzLzMyMzA2NzQ4MS1mMDQ2ZmFjOS1mMjVmLTRmOWUtOGFhMi1mYmNhNDE0ZGY4ZTQucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDgyNyUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA4MjdUMTQxNTQ5WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9NzE4ZmRhOTc3ZjExZjg1ZmM4NWU2ZTIxYWNhZWM5YjNlOTQ1OTY5ODZiZDE0ODBiYTkyYWE0NWZhY2RhOWE5ZSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.hMEvK7nGOwe7gZoQ0gQAYUZaMuUcwbLCioDr2tX_xd8)
Bredis is a Redis-like database with similar functions and an HTTP API.
cargo install bredis
bredis run
curl http://localhost:8080/keys/mykey
curl http://localhost:8080/keys?prefix=my
curl -X POST -d "{\"key\":\"mykey\",\"value\":\"myvalue\"}" http://localhost:8080/keys
curl -X DELETE http://localhost:8080/keys/mykey
curl -X DELETE -d "{\"prefix\":\"my\"}" http://localhost:8080/keys
- Add EXPIRE and TTL operations
- Add pure in-memory rust backend
- Support stream protocol (websocks, protobuf, resp?)