Skip to Main Content
Modern Front-End Development for Rails, 2nd Edition
book

Modern Front-End Development for Rails, 2nd Edition

by Noel Rappin
September 2022
Intermediate to advanced content levelIntermediate to advanced
410 pages
10h 7m
English
Pragmatic Bookshelf
Content preview from Modern Front-End Development for Rails, 2nd Edition

Using Kredis to Store Short-Term State

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 ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Modern Front-End Development for Rails

Modern Front-End Development for Rails

Noel Rappin

Publisher Resources

ISBN: 9781680509977Errata Page