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