ποΈ Introduction
Redis stands for Remote DIctionary Server.
ποΈ Introduction
Welcome to the Redis handbook.
ποΈ WSL
WSL (Windows Subsystem for Linux) is a compatibility layer developed by Microsoft that allows you to run a GNU/Linux environment (like Ubuntu, Debian, Kali, etc.) directly on Windows, without needing a virtual machine (VM) or dual-boot setup.
ποΈ Installation
Installing Redis in Local
ποΈ Redis CLI
- redis-cli is the command-line interface for interacting with a Redis server.
ποΈ Common Commands
Key Commands
ποΈ Key Management
Key expiration
ποΈ Persistence
Redis Database Backup
ποΈ Pub/Sub
Redis Pub/Sub (Publish/Subscribe) is a messaging paradigm where:
ποΈ Transactions
MULTI, EXEC, DISCARD, WATCH
ποΈ Replication
Master-Slave replication
ποΈ Security
Redis AUTH
ποΈ Redis Modules
Redis Modules extend Redis beyond its core capabilities, allowing you to add new data types, commands, indexing engines, machine-learning components, and moreβwithout modifying Redis itself.
ποΈ Geospatial Indexes
Redis provides built-in geospatial capabilities that allow you to:
ποΈ Memory Optimization
Redis is an in-memory database, meaning performance and cost depend heavily on how efficiently memory is used.
ποΈ Lua Scripting
Redis includes a built-in Lua interpreter that allows you to run server-side scripts using the command:
ποΈ Connection Pooling
Connection pooling is a technique where a client application maintains a set of pre-established Redis connections and reuses them instead of creating a new connection for every request.
ποΈ Monitoring
Redis MONITOR β Real-Time Command Inspection
ποΈ Log Analysis
Where Redis Logs Are Stored
ποΈ Debugging
Redis is single-threaded (for command execution), so any blocking operation stops the server from processing other commands.
ποΈ Real Integrations
Redis as a Cache Layer