What happens when the cache expires?

Hi. I was wondering what happens when the cache is expired. Does Yii call the flush method? Are the values deleted from the cache.

For example, in an AWS Environment, with ElastiCache Redis, configures with Yii, does Yii delete the redis cache from aws when it has expired?

Thanks.