class Kiwi::LevelDBStore

Defined in:

kiwi/leveldb_store.cr

Constructors

Instance Method Summary

Instance methods inherited from class Kiwi::Store

[](*args) [], []=(*args) []=, clear : Store clear, delete(key : String) : String | Nil delete, fetch(key : String, &) : String | Nil fetch, get(key : String) : String | Nil get, set(key : String, val : String) : String set

Constructor Detail

def self.new(leveldb : LevelDB::DB) #

[View source]

Instance Method Detail

def clear : Store #

[View source]
def create_snapshot : LevelDB::Snapshot #

exclusive LevelDB API


[View source]
def delete(key : String) : String | Nil #

[View source]
def get(key : String) : String | Nil #

[View source]
def set(key : String, val : String) : String #

[View source]
def set_snapshot(snapshot : LevelDB::Snapshot) #

[View source]
def unset_snapshot #

[View source]