150
164
:param references: An iterable of iterables of keys. Each is a
151
165
reference to another key.
152
166
:param value: The value to associate with the key. It may be any
155
171
# we don't care about absent_references
156
172
node_refs, _ = self._check_key_ref_value(key, references, value)
158
174
raise errors.BadIndexDuplicateKey(key, self)
161
176
if self._nodes_by_key is not None and self._key_length > 1:
162
177
self._update_nodes_by_key(key, value, node_refs)
165
180
self._spill_mem_keys_to_disk()