1
0
mirror of https://github.com/actix/examples synced 2024-12-18 08:23:10 +01:00
examples/actix_redis/README.md

16 lines
579 B
Markdown
Raw Normal View History

2018-08-11 12:58:29 +02: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
2018-08-11 15:59:07 +02:00
To test the demo, POST a json object containing three strings to the /stuff endpoint:
2018-08-11 12:58:29 +02:00
{"one": "first entry",
"two": "second entry",
"three": "third entry" }
These three entries will cache to redis, keyed accordingly.
2018-08-11 15:59:07 +02:00
to delete these, simply issue a DELETE http request to /stuff endpoint