Introduction
In this lab, you will learn the fundamental key-value operations in Redis. We'll use the redis-cli
command-line interface to interact with the Redis server and perform basic operations like setting, getting, checking existence, deleting, and setting expiration times for keys. By the end of this lab, you'll have a solid understanding of how to use Redis as a simple data store.
Skills Graph
%%%%{init: {'theme':'neutral'}}%%%%
flowchart RL
redis(("Redis")) -.-> redis/RedisGroup(["Redis"])
redis/RedisGroup -.-> redis/access_cli("Connect Using CLI")
redis/RedisGroup -.-> redis/store_string("Set String Value")
redis/RedisGroup -.-> redis/fetch_string("Get String Value")
redis/RedisGroup -.-> redis/remove_key("Delete Single Key")
redis/RedisGroup -.-> redis/verify_key("Check Key Existence")
redis/RedisGroup -.-> redis/expire_key("Set Key Timeout")
subgraph Lab Skills
redis/access_cli -.-> lab-552077{{"Basic Key-Value Operations in Redis"}}
redis/store_string -.-> lab-552077{{"Basic Key-Value Operations in Redis"}}
redis/fetch_string -.-> lab-552077{{"Basic Key-Value Operations in Redis"}}
redis/remove_key -.-> lab-552077{{"Basic Key-Value Operations in Redis"}}
redis/verify_key -.-> lab-552077{{"Basic Key-Value Operations in Redis"}}
redis/expire_key -.-> lab-552077{{"Basic Key-Value Operations in Redis"}}
end