The key didn't exist in Redis, so we waited for the (simulated) database. That took 2005ms. The result is now stored in Redis for 30 seconds.
Refresh this page → The next request will be served by Redis in under 1ms. You'll see the timing jump from ~2005ms to <1ms. That's caching.