

def populate(self, case_ids):
    '\n        Populates a set of IDs in the cache in bulk.\n        Use this if you know you are going to need to access these later for performance gains.\n        Does NOT overwrite what is already in the cache if there is already something there.\n        '
    case_ids = list((set(case_ids) - set(self.cache.keys())))
    for case in self._iter_cases(case_ids):
        self.set(_get_id_for_case(case), case)

dataset/ETHPy150Open dimagi/commcare-hq/corehq/form_processor/casedb_base.py AbstractCaseDbCache.populate/original