class Store::KVStore

Defined in:

store/kv_store.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(db : RocksDB::DB, last_used : Atomic(Int64), last_flushed : Atomic(Int64), path : String) #

[View source]

Instance Method Detail

def close #

[View source]
def db : RocksDB::DB #

[View source]
def db=(db : RocksDB::DB) #

[View source]
def delete(key : Bytes) #

[View source]
def flush #

[View source]
def get?(key : Bytes) #

[View source]
def iterate_over_prefix(prefix : Bytes, &) #

[View source]
def last_flushed : Atomic(Int64) #

[View source]
def last_flushed=(last_flushed : Atomic(Int64)) #

[View source]
def last_used : Atomic(Int64) #

[View source]
def last_used=(last_used : Atomic(Int64)) #

[View source]
def lock : RWLock #

[View source]
def lock=(lock : RWLock) #

[View source]
def opened : Bool #

[View source]
def opened=(opened : Bool) #

[View source]
def path : String #

[View source]
def path=(path : String) #

[View source]
def put(key : Bytes, data : Bytes) #

[View source]
def write(batch : RocksDB::WriteBatch) #

[View source]