data KvEntry
A key with its value and version.
Example:
use std.kv { Kv }
fn main() io, db {
let kv = Kv.open("docs-kventry")!
kv.put("a", b"1")!
let e = kv.getEntry("a")!
print("{e.key} {e.value.len()} {e.version > 0}")
kv.close()
}Output
a 1 true
pub(api) data KvEntrySince. 1.0.0-beta
Fields
pub(api) key: str | The key. |
pub(api) value: bytes | The value. |
pub(api) version: u64 | Version of the key: grows with every change. |
Defined in: std/kv/kv.oxl:141