<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:

def contains(self, key):
    '''Returns whether the object named by `key` exists.
       First checks ``cache_datastore``.
    '''
    return self.cache_datastore.contains(key) \
        or self.child_datastore.contains(key)