Become a Redis expert.
See what's new in Redis University
Back
Products
Products
Community Edition
In-memory database for caching and streaming
Redis Cloud
Fully managed service integrated with Google Cloud, Azure, and AWS for production-ready apps
Redis Software
Self-managed software with additional compliance, reliability, and resiliency for enterprise scaling
Tools
Redis Insight
Clients & connectors
Key features
Redis for AI
Redis Data Integration (RDI)
Search & query
JSON
Active-Active
Auto Tiering
Vector database
Product releases
See how it works
Visit Demo Center
Get Redis
Downloads
Solutions
Use cases
Caching
Deduplication
Fast data ingest
Feature stores
Session management
Vector database
Industries
Financial services
Gaming
Healthcare
Retail
Customer case studies
Read stories
Optimizing Pokémon GO with a Redis cluster
See more
Support
Expert services
Support
Professional services
Company
About
Mission & values
Leadership
Careers
News
Partners
Docs
Learn
Docs
Commands
Quick starts
Tutorials
University
Knowledge base
Resources
Blog
Connect
Community
Events & webinars
Vector search
Learn what you need to go from beginner to GenAI expert
Get started
Pricing
Try Redis
Book a meeting
Login
Login
Book a meeting
Try Redis
Search
Search:
Redis in Action – Home
Foreword
Preface
Part 1: Getting Started
1.1.1 Redis compared to other database and software
1.1.3 Why Redis?
1.3.2 Posting and fetching articles
1.3.3 Grouping articles
2.1 Login and cookie caching
2.2 Shopping carts in Redis
2.3 Web page caching
2.5 Web page analytics
3.1 Strings
3.2 Lists
3.4 Hashes
3.5 Sorted sets
3.7.1 Sorting
3.7.2 Basic Redis transactions
3.7.3 Expiring keys
4.4 Redis transactions
4.7 Summary
5.1 Logging to Redis
5.2 Counters and statistics
5.2.2 Storing statistics in Redis
5.4.1 Using Redis to store configuration information
5.4.2 One Redis server per application component
5.4.3 Automatic Redis connection management
6.1 Autocomplete
6.2 Distributed locking
6.3 Counting semaphores
6.6 Distributing files with Redis
6.2.1 Why locks are important
6.2.2 Simple locks
6.2.5 Locks with timeouts
6.3.2 Fair semaphores
6.3.4 Preventing race conditions
6.5.1 Single-recipient publish/subscribe replacement
6.5.2 Multiple-recipient publish/subscribe replacement
6.6.2 Sending files
7.1 Searching in Redis
7.2 Sorted Indexes
7.5 Summary
7.1.2 Sorting search results
8.1.1 User information
8.5.1 Data to be streamed
9.2.2 SETs
9.4 Summary
Chapter 11: Scripting Redis with Lua
11.1.1 Loading Lua scripts into Redis
11.2 Rewriting locks and semaphores with Lua
11.5 Summary
11.2.1 Why locks in Lua?
11.2.2 Rewriting our lock
B.1 Forums for help
Buy the paperback