-
Book Overview & Buying
-
Table Of Contents
Rust Web Programming - Third Edition
By :
While our authentication sessions work, we might as well get more control over them and explore the concept of caching at the same time. We will do this by embedding our own Rust code directly in a Redis database, so we can perform a range of checks and updates in one call to the cache, as opposed to making multiple calls to a database. Caching is a great tool to add to your belt, enabling you to reduce the time and resources used to serve data. In this chapter, we cover the following:
By the end of this chapter, you will be able to build custom caching functionality directly inside Redis to control the state of the user session. However, this caching skill can also be used in a variety of different problems. It must be noted that we are near the end of building out our main application. This means...