Resource

entry

A response from a KV Store Lookup operation.

resource entry;

F take-body

take-body: func() -> option​<body>;

Take and return the body from this entry, if it has one; otherwise return none.

After calling this method, this entry will no longer have a body.

F metadata

metadata: func(max-len: u64) -> result​<option​<string>, error>;

Read the metadata of the KV Store item, if present.

F generation

generation: func() -> u64;

Read the current generation of the KV Store item.