Sets

When stored in a Deno KV store, instances of Set are preserved.

When displayed in kview, the entries of a set are displayed in a table with each entry being displayed in a JSON format.

When adding or updating a set value, it is edited as an array where each element is an entry in the set and provided in a JSON format. For example, a set with three entries would look like this:

[
  { "a": "value" },
  false,
  null
]

Important

While set entries can be of any type that is storable in Deno KV, the entries are currently serialized to JSON making it not possible to represent values not able to be serialized to JSON, like bigint, buffers, maps, dates, regexp, and other sets.