160
160
:param value: The value to associate with the key. It may be any
161
161
bytes as long as it does not contain \0 or \n.
163
165
# we don't care about absent_references
164
166
node_refs, _ = self._check_key_ref_value(key, references, value)
166
168
raise errors.BadIndexDuplicateKey(key, self)
167
169
self._nodes[key] = static_tuple.StaticTuple(node_refs, value)
169
170
if self._nodes_by_key is not None and self._key_length > 1:
170
171
self._update_nodes_by_key(key, value, node_refs)
173
174
self._spill_mem_keys_to_disk()