Key/Value API v0.5.8

Introduction

Data types

Data modeling

String commands

List commands

Set commands

Sorted set commands

Hash commands

Data types

DynomiteDB supports a variety of data types, including:

  • String
  • List
  • Set
  • Sorted Set
  • Hash

The String type is used to support several sub-types including Integer, Float and Bitmap.

String

String is an ordered sequence of non-unique bytes. String is binary safe and more closely resembles a byte array than a string literal.

List

List is an insertion ordered, non-unique sequence of strings. It is implemented as a doubly-linked list and supports fast head and tail operations.

Set

Set is an unordered, unique collection of strings. It is similar to a mathematical set and supports common set operations including union, intersection and difference.

Sorted Set

Sorted Set is a score ordered sequence of unique strings. Each item in a Sorted Set is comprised of two components, the member and a score. The member is a string value, while the score is an arbitrary float value that you define.

Hash

Hash is an unordered collection of unique field/value pairs. It is similar to a relational database row, a flat unnested document in a document database, or a hash map provided by various programming languages.