Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
e2871e21
Commit
e2871e21
authored
Apr 04, 2014
by
antirez
Browse files
More encoding checking macros in redis.h.
parent
8046756f
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/redis.h
View file @
e2871e21
...
...
@@ -1081,8 +1081,10 @@ int compareStringObjects(robj *a, robj *b);
int
collateStringObjects
(
robj
*
a
,
robj
*
b
);
int
equalStringObjects
(
robj
*
a
,
robj
*
b
);
unsigned
long
long
estimateObjectIdleTime
(
robj
*
o
);
#define
sds
EncodedObject(objptr) (objptr->encoding == REDIS_ENCODING_RAW
|| objptr->encoding == REDIS_ENCODING_EMBSTR
)
#define
raw
EncodedObject(objptr) (objptr->encoding == REDIS_ENCODING_RAW)
#define lzfEncodedObject(objptr) (objptr->encoding == REDIS_ENCODING_LZF)
#define intEncodedObject(objptr) (objptr->encoding == REDIS_ENCODING_INT)
#define sdsEncodedObject(objptr) (objptr->encoding == REDIS_ENCODING_RAW || objptr->encoding == REDIS_ENCODING_EMBSTR)
/* Synchronous I/O with timeout */
ssize_t
syncWrite
(
int
fd
,
char
*
ptr
,
ssize_t
size
,
long
long
timeout
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment