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.

Basic Data Management in Redis

Basic Data Management in Redis

In this lab, you will explore basic data management techniques in Redis. You'll begin by learning how to increment and decrement numerical values using the atomic `INCR` and `DECR` commands, suitable for counters and rate limiters. You'll connect to the Redis server using `redis-cli`, set initial values, and then increment and decrement them, verifying the results with the `GET` command. Furthermore, you will learn how to retrieve all keys stored in Redis using the `KEYS` command.
Redis
Increment Redis Counter for Website Visits

Increment Redis Counter for Website Visits

In this challenge, you'll implement a Redis-based counter to track website homepage visits. The goal is to connect to a Redis server using `redis-cli`, increment the `homepage_visits` key by 1 using the `INCR` command, and then exit the `redis-cli`.
Redis
Configure Redis Maxmemory Limit

Configure Redis Maxmemory Limit

In this challenge, you'll configure the Redis `maxmemory` limit to prevent data loss due to memory exhaustion. As a system administrator, your task is to connect to the Redis server using `redis-cli` and use the `CONFIG SET` command to limit Redis memory usage to 200MB. The challenge requires you to set the `maxmemory` parameter to `200mb` within the `redis-cli` environment and then exit. Successful completion involves verifying the command execution in the Redis command history log.
Redis
Add Item to Redis To-Do List

Add Item to Redis To-Do List

In this challenge, you'll learn how to add an item to a Redis-backed to-do list application using the `LPUSH` command. The goal is to add 'Grocery Shopping' to the `todo_list` list in Redis. You'll use `redis-cli` and verification steps to confirm success.
Redis
Expire Keys In Redis Cache

Expire Keys In Redis Cache

In this challenge, you'll simulate a social media app using Redis to cache trending topics. The goal is to set a key representing a trending topic and configure it to expire after a specific duration. You'll use redis-cli, set the key `trending:topic1` to `Redis Basics`, and set its expiration time to 3600 seconds.
Redis
Verify Redis Server Status

Verify Redis Server Status

In this challenge, you'll troubleshoot a Redis server connectivity issue by verifying its status. The task involves using the `redis-cli` command to connect to the Redis server and then using the `PING` command to confirm that the server is running and responsive.
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
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 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
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
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
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.
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
Redis Sorted Set Operations

Redis Sorted Set Operations

In this lab, you will explore fundamental Redis Sorted Set operations. You'll use ZADD to add elements, ZRANGE to fetch ranges, ZRANK to get element rank, ZINCRBY to increment scores, and ZREM to remove elements. Learn to manage sorted sets effectively.
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 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
Redis Transactions

Redis Transactions

In this lab, you will explore Redis transactions, executing commands as a single, atomic operation for data consistency. Learn to start transactions with MULTI, queue commands, and execute or discard them. Practice setting keys, getting values, and incrementing counters within transactions.
Redis
  • Prev
  • 1
  • 2
  • Next
OSZAR »