An example of using Redis in a Rust web application implementing three different ways to use redis within a warp web service:
To run the application in dev mode:
- Start the redis instance:
docker run -p 6379:6379 redis:6.0
- Starting the application:
make dev
- Test the different endpoints using:
curl http://localhost:8080/mobc
mobc_world
curl http://localhost:8080/r2d2
r2d2_world
curl http://localhost:8080/direct
direct_world