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(Byte[])

Declaration
public void Delete(byte[] key)
Parameters
Type Name Description
Byte[] key
| Improve this Doc View Source

Dispose()

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

Exists(Byte[])

Declaration
public bool Exists(byte[] key)
Parameters
Type Name Description
Byte[] key
Returns
Type Description
Boolean
| Improve this Doc View Source

Get(Byte[])

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

ListKeys()

Declaration
public IEnumerable<byte[]> ListKeys()
Returns
Type Description
IEnumerable<Byte[]>
| Improve this Doc View Source

Set(Byte[], Byte[])

Declaration
public void Set(byte[] key, byte[] value)
Parameters
Type Name Description
Byte[] key
Byte[] value

Implements

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