NTT DATA interview question

How Redis cache works internally?