<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def refresh(self):
 """Refresh the cache by deleting the old one and creating a new one. """

        if self.exists:
            self.delete()
        self.populate()
        self.open()