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
711e514e
Commit
711e514e
authored
Jan 22, 2019
by
antirez
Browse files
ACL: update comments in command flags.
parent
e97481d4
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/server.h
View file @
711e514e
...
@@ -202,20 +202,22 @@ typedef long long mstime_t; /* millisecond time type. */
...
@@ -202,20 +202,22 @@ typedef long long mstime_t; /* millisecond time type. */
/* Command flags. Please check the command table defined in the redis.c file
/* Command flags. Please check the command table defined in the redis.c file
* for more information about the meaning of every flag. */
* for more information about the meaning of every flag. */
#define CMD_WRITE (1<<0) /* "w" flag */
#define CMD_WRITE (1<<0) /* "w
rite
" flag */
#define CMD_READONLY (1<<1) /* "r" flag */
#define CMD_READONLY (1<<1) /* "r
ead-only
" flag */
#define CMD_DENYOOM (1<<2) /* "
m
" flag */
#define CMD_DENYOOM (1<<2) /* "
use-memory
" flag */
#define CMD_MODULE (1<<3) /* Command exported by module. */
#define CMD_MODULE (1<<3) /* Command exported by module. */
#define CMD_ADMIN (1<<4) /* "a" flag */
#define CMD_ADMIN (1<<4) /* "admin" flag */
#define CMD_PUBSUB (1<<5) /* "p" flag */
#define CMD_PUBSUB (1<<5) /* "pub-sub" flag */
#define CMD_NOSCRIPT (1<<6) /* "s" flag */
#define CMD_NOSCRIPT (1<<6) /* "no-script" flag */
#define CMD_RANDOM (1<<7) /* "R" flag */
#define CMD_RANDOM (1<<7) /* "random" flag */
#define CMD_SORT_FOR_SCRIPT (1<<8) /* "S" flag */
#define CMD_SORT_FOR_SCRIPT (1<<8) /* "to-sort" flag */
#define CMD_LOADING (1<<9) /* "l" flag */
#define CMD_LOADING (1<<9) /* "ok-loading" flag */
#define CMD_STALE (1<<10) /* "t" flag */
#define CMD_STALE (1<<10) /* "ok-stale" flag */
#define CMD_SKIP_MONITOR (1<<11) /* "M" flag */
#define CMD_SKIP_MONITOR (1<<11) /* "no-monitor" flag */
#define CMD_ASKING (1<<12) /* "k" flag */
#define CMD_ASKING (1<<12) /* "cluster-asking" flag */
#define CMD_FAST (1<<13) /* "F" flag */
#define CMD_FAST (1<<13) /* "fast" flag */
/* Command flags used by the module system. */
#define CMD_MODULE_GETKEYS (1<<14) /* Use the modules getkeys interface. */
#define CMD_MODULE_GETKEYS (1<<14) /* Use the modules getkeys interface. */
#define CMD_MODULE_NO_CLUSTER (1<<15) /* Deny on Redis Cluster. */
#define CMD_MODULE_NO_CLUSTER (1<<15) /* Deny on Redis Cluster. */
...
...
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