def _get_all(self, *args, **kwargs):
headers = kwargs.get('<STR_LIT>', args[<NUM_LIT:2>] if len(args) > <NUM_LIT:2> else None) or dict()<EOL>if '<STR_LIT>' in headers:<EOL><INDENT>keys = super(Bucket, self)._get_all(*args, **kwargs)<EOL>for key in keys:<EOL><INDENT>mimicdb.backend.sadd(tpl.bucket % self.name, key.name)<EOL>mimicdb.backend.hmset(tpl.key % (self.name, key.name), dict(size=key.size, md5=key.etag.strip('<STR_LIT:">')))<EOL>key.name = key.name<EOL><DEDENT>return keys<EOL><DEDENT>prefix = kwargs.get('<STR_LIT>', '<STR_LIT>')<EOL>return list(self.list(prefix=prefix))<EOL>
If 'force' is in the headers, retrieve the list of keys from S3.
        Otherwise, use the list() function to retrieve the keys from MimicDB.