Redis LangCache and the next era of fast, accurate AI are here.
Get the details
Back
Redis for AI
Products
Products
Redis Cloud
Fully managed and integrated with Google Cloud, Azure, and AWS.
Redis for AI
Build the fastest, most reliable GenAI apps with our advanced vector database.
Redis Software
Self-managed software with enterprise-grade compliance and reliability.
Redis Data Integration (RDI)
Synchronize data in near-real time to make data fast—without writing code.
Community Edition
In-memory database for caching & streaming.
Tools
Redis Insight
Clients and connectors
Get Redis
Downloads
Resources
CONNECT
Customer stories
Partners
Support
Community
Events & webinars
Professional services
Learn
Docs
Commands
Quick starts
Tutorials
University
Knowledge base
Resources
Blog
LATEST
Releases
News & updates
See how it works
Visit Demo Center
Docs
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