September 2022
Intermediate to advanced
410 pages
10h 7m
English
Sometimes you have information that you want to store for a finite amount of time and that you’d like to be able to access quickly. In our context, this might be about the state of the UI at any given time—we might use that information to redraw the screen—but it’s not really business data and we don’t necessarily want to store it in our regular database with our regular data. One example might be a list of a user’s recent searches. Or a list of what parts of the UI are visible or not (in our application, we might want to persist whether the list of favorite concerts is visible or not).
Typically, this kind of ephemeral data is stored in a key/value storage tool like Redis. We’ve already installed Redis ...