mirror of
https://github.com/actix/examples
synced 2024-11-23 22:41:07 +01:00
15 lines
514 B
Markdown
15 lines
514 B
Markdown
|
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 /cache_stuff endpoint:
|
||
|
{"one": "first entry",
|
||
|
"two": "second entry",
|
||
|
"three": "third entry" }
|
||
|
|
||
|
|
||
|
|
||
|
These three entries will cache to redis, keyed accordingly.
|