Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
dc690161
Unverified
Commit
dc690161
authored
Jul 15, 2020
by
WuYunlong
Committed by
GitHub
Jul 15, 2020
Browse files
Refactor RM_KeyType() by using macro. (#7486)
parent
a176cb56
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/module.c
View file @
dc690161
...
...
@@ -2044,7 +2044,7 @@ int RM_KeyType(RedisModuleKey *key) {
case
OBJ_HASH
:
return
REDISMODULE_KEYTYPE_HASH
;
case
OBJ_MODULE
:
return
REDISMODULE_KEYTYPE_MODULE
;
case
OBJ_STREAM
:
return
REDISMODULE_KEYTYPE_STREAM
;
default:
return
0
;
default:
return
REDISMODULE_KEYTYPE_EMPTY
;
}
}
...
...
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