<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def set_record(self, name, record_id, record):
 """Save a record into the cache. Args: name (string):
 The name to save the model under. record_id (int):
 The record id. record (:class:`cinder_data.model.CinderModel`):
 The model """

        if name not in self._cache:
            self._cache[name] = {}
        self._cache[name][record_id] = record