>_ IzzyLab

Topic breakdown

Redis is an in-memory key-value store where a key can be given a TTL (time to live): once the seconds run out the server deletes it on its own — ideal for sessions that should expire. You work with the server through the redis-cli client. SET writes a value, and a lifespan is attached either with the TTL-in-seconds option on SET itself or with a separate command; you check the result with commands that read the value and the remaining TTL.

What's checked

  1. key session:1 equals active
  2. session:1 has the TTL from the task

What it looks like