def copy(self): self.keys = set() for key in redisimp.copy(SRC, DST, backfill=self.backfill()): yield key
def copy(self, pattern=None): for key in redisimp.copy(SRC.dbfilename, DST, pattern=pattern): self.keys.add(key)