Expand description

General basic key-value structs for Key-Value based storages.

Modules

re-export bytes crate.

Iterator trait

Unsafe raw pointer for Key, Value, Entry

Structs

EncodedValue contains the data need to be stored in Bytes.

Entry provides Key, Value, UserMeta and ExpiresAt. This struct can be used by the user to set data.

Header is used in value log as a header before Entry.

A general Key for key-value storage, the underlying is u8 slice.

A general mutable Key for key-value storage, the underlying is u8 slice.

KeyRef can only contains a underlying u8 slice of Key

Values have their first byte being byteData or byteDelete. This helps us distinguish between a key that has never been seen and a key that has been explicitly deleted.

Uvariant overflows a 64-bit integer

Value represents the value info that can be associated with a key, but also the internal Meta field. The data in the Value is not mutable.

ValueMut represents the value info that can be associated with a key, but also the internal Meta field. The data in the ValueMut is mutable.

ValueRef contains a &'a Value

Constants

The position store expires_at in a encoded value

Maximum possible size of the header. The maximum size of header struct will be 18 but the maximum size of variant encoded header will be 21.

The position store meta in a encoded value

The position store user meta in a encoded value

Traits

Extensions for Key

Extensions for KeyMut

Extensions for Value

Extensions for ValueMut

Functions

Checks the key without timestamp and checks the timestamp if keyNoTs is same. a would be sorted higher than aa if we use bytes.compare All keys should have timestamp.

Checks for key equality ignoring the version timestamp.