<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def save(self, doc):
 """Save a doc to cache """

        self.log.debug('save()')
        self.docs.append(doc)
        self.commit()