Counters

Often, an application is required to count and store counts of things. Redis comes with counters as a tool to help solve requirements like this. A common scenario is to count views of a page, article, or post. Redis counters are capable of solving problems like this. Especially in a web environment, where multiple users could be viewing the same element, Redis has safeguards in place which help to ensure that simultaneous hits to the same counter will not be lost.

Get Seven NoSQL Databases in a Week now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.