Comments (3)
Thanks for the kind reminder, we will fix it accordingly.
from tairstring.
https://redis.io/topics/modules-api-ref
The command function type is the following:
int MyCommand_RedisCommand(RedisModuleCtx *ctx, RedisModuleString **argv, int argc);
And is supposed to always return REDISMODULE_OK.
Thank you for your suggestion. I have also seen the relevant documents. But I personally don't understand the recommendations of the official documentation too much. For the module, it seems strange that REDISMODULE_OK
is still returned if there is an error in the cmd. What do you think?
from tairstring.
@chenyang8094 I've been wondering about the REDISMODULE_OK convention for a long time, and there's no documentation on why it's done.
But it is clear from the existing code that when REDISMODULE_ERR is returned, there must be a serious problem, such as permission, using an illegal interface (e.g. the key of ListPush is not OBJ_LIST).
Maybe RedieModule should add error statistics, developers can analyze the problem based on these error statistics (this is just my guess).
from tairstring.
Related Issues (7)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tairstring.