Method: PEROBS::BTree#insert
- Defined in:
- lib/perobs/BTree.rb
#insert(key, value) ⇒ Object
Insert a new value into the tree using the key as a unique index. If the key already exists the old value will be overwritten.
221 222 223 224 225 226 |
# File 'lib/perobs/BTree.rb', line 221 def insert(key, value) if @root.insert(key, value) @size += 1 @node_cache.flush end end |