educative.io

A maybe silly question about cache and redis

Hi, I don’t quite understand here if we use in-memory databases like redis that is mentioned in the lesson, or a hash table, why do we still need cache? Is cache something that reads from memery to avoid slow read/write to the disk?