KvpDatabase

Functions

Link copied to clipboard
abstract fun clear()

Delete all items

Link copied to clipboard
abstract fun delete(key: ByteArray)
open fun delete(key: String)

delete a record

Link copied to clipboard
abstract fun get(key: ByteArray): ByteArray

look up the passed key, throwing DataMissingException if it does not exist

open fun get(key: String): ByteArray

look up the passed key, returning the value or throwing DataMissingException

Link copied to clipboard
abstract fun getOrNull(key: ByteArray): ByteArray?
open fun getOrNull(key: String): ByteArray?

look up the passed key, returning the value or null if it does not exist

Link copied to clipboard
abstract fun set(key: ByteArray, value: ByteArray): Boolean
open fun set(key: String, value: ByteArray): Boolean

update or insert a key value pair into the database