Challenge: Task Management System
Imagine you have a simple task management system using a list
in Redis. Your task is to perform the following actions:
-
Create a task list (named
todo_list
) and add the following tasks to it:"Do a workout"
,"Read a book"
,"Call a friend"
; -
Retrieve and display the entire task list. After this step, the list should contain three tasks;
-
Remove the last task from the list and display the updated list. After this step, the list should contain only two tasks;
-
Update the first task to
"Cook lunch"
and display the updated list. After this step, the list should reflect the change; -
Retrieve the text of the second task directly (by index). Redis should return the task's text.
Thanks for your feedback!