Files: 42ee59ff392dd3ff9454e74b2e3a281ebd9310e6 / docs / index.md
3003 bytesRaw
<!-- Generated by documentation.js. Update this documentation by updating the source code. -->
Table of Contents
constructor
Parameters
opts
opts.root
{object} a merkle root to a radix tree. If none, RadixTree will create an new root.opts.db
{object} a level db instance alternitlyopts.graph
can be usedopts.graph
{object} an instance of ipld-graph-builder alternitvlyopts.dag
can be usedopts.dag
{object} an instance if ipfs.dag. If there is noopts.graph
this will be used to create a new graph instance.
get
gets a value given a key
Parameters
key
any
Returns Promise
set
stores a value at a given key
Parameters
key
anyvalue
Returns Promise
delete
deletes a value at a given key
Parameters
key
any
Returns Promise
flush
creates a merkle root for the current tree and stores the data perstantly
Returns Promise
emptyTreeState
returns the state of an empty tree
ArrayConstructor
returns an Uint1Array constructir which is used to repersent keys
Returns object
Built with git-ssb-web