Skip to main content

Module flags

Module flags 

Source
Expand description

Flag bits used to tag stored values.

These match the constants used by the Java clients (cn.vika.memcached NativeHandler and com.schooner.MemCached), so values written by this crate can be read back by those clients and vice versa.

Constantsยง

F_COMPRESSED
Value body is QuickLZ-compressed (this crate cannot decode it).
F_SERIALIZED
Value body is a Java-serialized object (this crate cannot decode it).
MARKER_BOOLEAN
A boolean, stored as a single byte (0/1).
MARKER_BYTE
A single byte.
MARKER_BYTEARR
A raw byte array.
MARKER_CHARACTER
A character, stored as a 32-bit integer.
MARKER_DATE
A date, stored as an 8-byte big-endian millisecond timestamp.
MARKER_DOUBLE
A 64-bit double, big-endian IEEE-754 bits.
MARKER_INTEGER
A 32-bit integer, big-endian.
MARKER_LONG
A 64-bit long, big-endian.
MARKER_SHORT
A 16-bit short, big-endian.
MARKER_STRING
A String, stored as UTF-8.
MARKER_STRINGBUFFER
A StringBuffer, stored as UTF-8.
MARKER_STRINGBUILDER
A StringBuilder, stored as UTF-8.