KVDB Entries
Setting Entries in KVDB.
Sample code on this page is based on the initial assumptions.
Entries Inside KVDB
Entries inside KVDBs are set in binary format. Before creating an entry, you need to decide on the entry format.
For more information about the KVDB's architecture and best practices for creating entries, visit the KVDBs Documentation.
Creating KVDB Entry
When you create a new entry, the version
parameter must be set to 0 - which is the default value.
Updating KVDB Entry
If you want to update an existing KVDB entry - you have to provide current version of given entry. Even if certain fields haven’t changed, their current values must still be provided e.g. public and private meta.
Getting KVDB Entries
Define entry item class with decoded data
and publicMeta
:
Fetching the most recent entries in given KVDB:
Checking if an Entry exists
You can check if a KVDB entry with the given key exists within the specified KVDB instance.
Deleting KVDB Entries
The snippet below deletes KVDB entry and all its data. This action is irreversible.
We use cookies on our website. We use them to ensure the proper functioning of the site and, if you agree, for purposes we set, such as analytics or marketing.