Using databases

Another good feature of actix-web, in combination with the actix crate, is the ability to use databases. Do you remember how we used SyncArbyter to perform background tasks? It's a good approach to implement database interaction since there are not enough asynchronous database connectors and we have to use synchronous ones. Let's add the caching of responses to a Redis database for our previous example.