-
Notifications
You must be signed in to change notification settings - Fork 1.1k
chore(hset_family): Code cleaning #5882
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| *registry << CI{"HDEL", CO::FAST | CO::WRITE, -3, 1, 1}.HFUNC(HDel) | ||
| << CI{"HLEN", CO::FAST | CO::READONLY, 2, 1, 1}.HFUNC(HLen) | ||
| << CI{"HEXISTS", CO::FAST | CO::READONLY, 3, 1, 1}.HFUNC(HExists) | ||
| << CI{"HGET", CO::FAST | CO::READONLY, 3, 1, 1}.HFUNC(HGet) | ||
| << CI{"HGETALL", CO::FAST | CO::READONLY, 2, 1, 1}.HFUNC(HGetAll) | ||
| << CI{"HMGET", CO::FAST | CO::READONLY, -3, 1, 1}.HFUNC(HMGet) | ||
| << CI{"HMSET", CO::WRITE | CO::FAST | CO::DENYOOM, -4, 1, 1}.HFUNC(HSet) | ||
| << CI{"HINCRBY", CO::WRITE | CO::DENYOOM | CO::FAST, 4, 1, 1}.HFUNC(HIncrBy) | ||
| << CI{"HINCRBYFLOAT", CO::WRITE | CO::DENYOOM | CO::FAST, 4, 1, 1}.HFUNC(HIncrByFloat) | ||
| << CI{"HKEYS", CO::READONLY, 2, 1, 1}.HFUNC(HKeys) | ||
| << CI{"HEXPIRE", CO::WRITE | CO::FAST | CO::DENYOOM, -5, 1, 1}.HFUNC(HExpire) | ||
| << CI{"HRANDFIELD", CO::READONLY, -2, 1, 1}.HFUNC(HRandField) | ||
| << CI{"HSCAN", CO::READONLY, -3, 1, 1}.HFUNC(HScan) | ||
| << CI{"HSET", CO::WRITE | CO::FAST | CO::DENYOOM, -4, 1, 1}.HFUNC(HSet) | ||
| << CI{"HSETEX", CO::WRITE | CO::FAST | CO::DENYOOM, -5, 1, 1}.SetHandler(HSetEx) | ||
| << CI{"HSETNX", CO::WRITE | CO::DENYOOM | CO::FAST, 4, 1, 1}.HFUNC(HSetNx) | ||
| << CI{"HSTRLEN", CO::READONLY | CO::FAST, 3, 1, 1}.HFUNC(HStrLen) | ||
| << CI{"HVALS", CO::READONLY, 2, 1, 1}.HFUNC(HVals); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why do not we need acl::* flags anymore?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you don't pass the acl flag, it will be determined by the command flags. It should have been this way from the start.
I've checked COMMAND output, the acl flags didn't change
I want to add tiering capabilities in the future. The code is quite verbose and there are parts that are either copied or have no real effect (are redundant)