Streams: assign value of 6 to OBJ_STREAM + some refactoring.

This commit is contained in:
antirez
2017-09-05 12:13:16 +02:00
parent 79866a6361
commit 100d43c1ac
3 changed files with 17 additions and 10 deletions

View File

@ -69,8 +69,9 @@
#define RDB_ENC_INT32 2 /* 32 bit signed integer */
#define RDB_ENC_LZF 3 /* string compressed with FASTLZ */
/* Dup object types to RDB object types. Only reason is readability (are we
* dealing with RDB types or with in-memory object types?). */
/* Map object types to RDB object types. Macros starting with OBJ_ are for
* memory storage and may change. Instead RDB types must be fixed because
* we store them on disk. */
#define RDB_TYPE_STRING 0
#define RDB_TYPE_LIST 1
#define RDB_TYPE_SET 2