Show / Hide Table of Contents

Class RocksDBKeyValueStore

The RocksDB IKeyValueStore implementation. This stores data in the RocksDB.

Inheritance
Object
RocksDBKeyValueStore
Implements
IKeyValueStore
IDisposable
Inherited Members
Object.Equals(Object)
Object.Equals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
Object.ToString()
Namespace: Libplanet.RocksDBStore
Assembly: Libplanet.RocksDBStore.dll
Syntax
public class RocksDBKeyValueStore : IKeyValueStore, IDisposable

Constructors

| Improve this Doc View Source

RocksDBKeyValueStore(String)

Creates a new RocksDBKeyValueStore.

Declaration
public RocksDBKeyValueStore(string path)
Parameters
Type Name Description
String path

The path of the storage file will be saved.

Methods

| Improve this Doc View Source

Delete(in KeyBytes)

Deletes the given key. If the key does not exist, nothing happens.

Declaration
public void Delete(in KeyBytes key)
Parameters
Type Name Description
KeyBytes key

A key to delete.

| Improve this Doc View Source

Delete(IEnumerable<KeyBytes>)

Declaration
public void Delete(IEnumerable<KeyBytes> keys)
Parameters
Type Name Description
IEnumerable<KeyBytes> keys
| Improve this Doc View Source

Dispose()

Declaration
public void Dispose()
| Improve this Doc View Source

Exists(in KeyBytes)

Declaration
public bool Exists(in KeyBytes key)
Parameters
Type Name Description
KeyBytes key
Returns
Type Description
Boolean
| Improve this Doc View Source

Get(in KeyBytes)

Declaration
public byte[] Get(in KeyBytes key)
Parameters
Type Name Description
KeyBytes key
Returns
Type Description
Byte[]
| Improve this Doc View Source

Get(IEnumerable<KeyBytes>)

Declaration
public IReadOnlyDictionary<KeyBytes, byte[]> Get(IEnumerable<KeyBytes> keys)
Parameters
Type Name Description
IEnumerable<KeyBytes> keys
Returns
Type Description
IReadOnlyDictionary<KeyBytes, Byte[]>
| Improve this Doc View Source

ListKeys()

Declaration
public IEnumerable<KeyBytes> ListKeys()
Returns
Type Description
IEnumerable<KeyBytes>
| Improve this Doc View Source

Set(in KeyBytes, Byte[])

Declaration
public void Set(in KeyBytes key, byte[] value)
Parameters
Type Name Description
KeyBytes key
Byte[] value
| Improve this Doc View Source

Set(IDictionary<KeyBytes, Byte[]>)

Declaration
public void Set(IDictionary<KeyBytes, byte[]> values)
Parameters
Type Name Description
IDictionary<KeyBytes, Byte[]> values

Implements

IKeyValueStore
IDisposable
  • Improve this Doc
  • View Source
In This Article
Back to top Copyright © 2018–2021 Planetarium