
There is more to Redis than just caching.
Redis can be used in a variety of scenarios as shown in the diagram.
We can use Redis to share user session data among different services.
We can use Redis to cache objects or pages, especially for hotspot data.
We can use a Redis string to acquire locks among distributed services.
We can count how many likes or how many reads for articles.
We can apply a rate limiter for certain user IPs.
We can use Redis Int for global ID.
We can use Redis Hash to represent key-value pairs in a shopping cart.
We can use Bitmap to represent the user login daily and calculate user retention.
We can use List for a message queue.
We can use ZSet to sort the articles.
There is more to Redis than just caching.
Redis can be used in a variety of scenarios as shown in the diagram.
We can use Redis to share user session data among different services.
We can use Redis to cache objects or pages, especially for hotspot data.
We can use a Redis string to acquire locks among distributed services.
We can count how many likes or how many reads for articles.
We can apply a rate limiter for certain user IPs.
We can use Redis Int for global ID.
We can use Redis Hash to represent key-value pairs in a shopping cart.
We can use Bitmap to represent the user login daily and calculate user retention.
We can use List for a message queue.
We can use ZSet to sort the articles.