Redis Tutorials

Redis provides a well-structured learning path for in-memory data storage and caching. Our tutorials cover Redis data structures, caching strategies, and performance optimization techniques, suitable for both beginners and intermediate developers. With free labs and practical examples, you'll gain hands-on experience in Redis operations. Our interactive playground allows you to practice Redis commands and see instant results.

Refresh Cached Data with TTL and Invalidation

Refresh Cached Data with TTL and Invalidation

Observe stale product data, refresh it after a short TTL and invalidate the correct cache key when the application updates its price.
RedisAWS
Keep the Application Working When the Cache Fails

Keep the Application Working When the Cache Fails

Use bounded cache timeouts and source fallback to keep product lookups working during a controlled cache failure, then observe recovery.
Redis
Add a Cache to a Product Lookup

Add a Cache to a Product Lookup

Connect a product application to a Valkey cache and prove that repeated lookups return the same product without another source database read.
AWSRedis
Introduction to Redis Data Structures

Introduction to Redis Data Structures

In this lab, you will explore fundamental Redis data structures and how to interact with them using the `redis-cli` command-line tool. The lab focuses on practical exercises to help you understand how to store and retrieve data in Redis. You'll work with Strings, Lists, Sets, and Hashes.
Redis
Basic Key-Value Operations in Redis

Basic Key-Value Operations in Redis

In this lab, we will explore basic key-value operations in Redis, focusing on how to interact with Redis as a data store. We'll use the `redis-cli` command-line interface to connect to the Redis server and perform fundamental operations. We will learn how to set and retrieve key-value pairs using the `SET` and `GET` commands. Furthermore, we will practice setting different key-value pairs to solidify our understanding of these core operations.
Redis
Redis Pub/Sub Messaging

Redis Pub/Sub Messaging

In this lab, you will explore Redis's Pub/Sub messaging system. The lab guides you through the fundamental operations of subscribing to channels, publishing messages, and unsubscribing. You'll learn to use SUBSCRIBE, PUBLISH, UNSUBSCRIBE, and PSUBSCRIBE commands.
Redis
Basic Data Management in Redis

Basic Data Management in Redis

In this lab, you will practice basic Redis data management with `redis-cli`, including counters with `INCR` and `DECR`, key lookup with `KEYS`, type checks with `TYPE`, and clearing data with `FLUSHDB`.
Redis
Redis Security Settings

Redis Security Settings

In this lab, you will learn how to enhance Redis security by setting a password with `CONFIG SET requirepass`, authenticating with `AUTH`, and disabling commands with `CONFIG SET`. Secure your Redis server from unauthorized access and potential misuse.
Redis
Redis List Operations

Redis List Operations

In this lab, you will explore fundamental Redis list operations. You'll learn to manage list data using commands like `LTRIM`, `LINSERT`, `LPOP`, `RPOP`, and `BLPOP`. Practice trimming lists, inserting elements, popping elements, and blocking until elements are available. Master Redis list management!
Redis
Redis Lua Scripting

Redis Lua Scripting

In this lab, we will explore Redis Lua Scripting, focusing on executing Lua scripts directly within Redis to perform complex operations efficiently. This lab covers using the `EVAL` command, passing arguments, loading scripts with `SCRIPT LOAD`, and running loaded scripts with `EVALSHA`.
Redis
Redis Persistence Management

Redis Persistence Management

In this lab, we will explore Redis persistence management, focusing on how to configure and manage data durability. We'll configure RDB using `CONFIG SET`, enable AOF, manually save data, check the last save time, and rewrite the AOF file.
Redis
Redis Performance Monitoring

Redis Performance Monitoring

In this lab, you will learn how to monitor and troubleshoot Redis performance issues. The lab focuses on identifying and addressing latency problems, analyzing memory usage, and optimizing query performance. You'll use commands like LATENCY DOCTOR, MEMORY STATS, SLOWLOG GET, and MEMORY PURGE.
Redis
Installation and Initial Setup of Redis

Installation and Initial Setup of Redis

In this lab, you will learn how to install and perform the initial setup of Redis on a LabEx VM. The lab covers essential steps to get Redis up and running, including verifying the installation and ensuring the server is accessible. You'll update packages, install Redis, and test connectivity.
RedisLinux
Redis Hash Operations

Redis Hash Operations

In this lab, we will explore Redis Hash operations, focusing on efficient ways to manage data within hashes. We'll cover HMSET, HMGET, HINCRBY, and HEXISTS. By the end, you'll understand common hash operations in Redis.
Redis
Redis Advanced Key Management

Redis Advanced Key Management

In this lab, you will explore advanced key management techniques in Redis. You'll learn to rename keys with RENAME, move keys between databases with MOVE, set multiple keys with MSET, retrieve multiple keys with MGET, and iterate keys efficiently with SCAN.
Redis
Redis HyperLogLog Operations

Redis HyperLogLog Operations

In this lab, you will explore Redis HyperLogLog operations, focusing on estimating the cardinality of large datasets efficiently. You'll learn to use `PFADD` to add items, `PFCOUNT` to count unique items, and `PFMERGE` to merge HyperLogLogs. Gain hands-on experience tracking unique users.
Redis
Persistence and Simple Configuration in Redis

Persistence and Simple Configuration in Redis

In this lab, we will explore how to manage Redis configuration and persistence. We'll use `CONFIG GET` to view configuration, `CONFIG SET` to modify parameters, and `SAVE` and `BGSAVE` to save data to disk. This provides a comprehensive understanding of data persistence in Redis.
Redis
Redis Set Operations

Redis Set Operations

In this lab, you will explore Redis set operations, focusing on manipulating unordered collections of unique strings. You'll learn how to add elements to a set using the `SADD` command, perform set unions with `SUNION`, find common elements using `SINTER`, and identify differences between sets with `SDIFF`. Finally, you'll learn how to store the results of set operations for later use.
Redis
  • Prev
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • ...
  • 65
  • Next