Struct nihdb::Store [] [src]

pub struct Store { /* fields omitted */ }

Methods

impl Store
[src]

[src]

Creates a new store in a new directory.

[src]

Opens the store.

threshold is an upper bound on the size of unflushed data.

[src]

Inserts a key/value pair into the store if the key is not already present. Returns true if an insertion happened.

[src]

Replaces an existing key/value pair in the store. If the key is not present, does nothing and returns false.

[src]

Puts a key/value pair into the store, replacing the value if the key is already present. Compare to insert or replace.

[src]

Removes a key/value pair from the store. Returns true if the key was present.

[src]

Ensures that all preceding write operations have been written to disk (if you trust your kernel and your disk).

[src]

Flushes any buffered write operations to disk.

[src]

Returns true if a key/value pair is present, for the given key.

[src]

Gets the value for the specified key/value pair, or None if the key does not exist.

[src]

Produces a store iterator for iterating the store over the given interval, in the given direction.

[src]

Creates a StoreIter for iterating forwards through the interval.

[src]

Creates a StoreIter for iterating backwards through the interval.

[src]

Produces the next key/value pair from the StoreIter. Returns None to mark the end of iteration.