How to clean redis at regular time

I have set the [restart] in multiple turn dialogue,but some dialogue will end in the midway. so, how to clean redis at regular time?