1
0
mirror of https://github.com/actix/examples synced 2024-11-27 16:02:57 +01:00
examples/redis
yjh 89d2e4e3f7
fix typo and update some deps (#390)
* chore: fix typo for `run-in-thread`

* chore: update some deps for examples
2020-12-14 11:30:06 +00:00
..
src v3 examples (#364) 2020-09-12 16:49:45 +01:00
Cargo.toml fix typo and update some deps (#390) 2020-12-14 11:30:06 +00:00
README.md migrate readis and websockets examples 2019-12-16 11:23:36 +06:00

This project illustrates how to send multiple cache requests to redis in bulk, asynchronously. This asyncio approach resembles traditional redis pipelining. Details about how this is so can be read at https://github.com/benashford/redis-async-rs/issues/19#issuecomment-412208018

To test the demo, POST a json object containing three strings to the /stuff endpoint: {"one": "first entry", "two": "second entry", "three": "third entry" }

These three entries will cache to redis, keyed accordingly.

to delete these, simply issue a DELETE http request to /stuff endpoint