Giter Club home page Giter Club logo

Comments (3)

baronwangr avatar baronwangr commented on May 24, 2024

Thanks for the kind reminder, we will fix it accordingly.

from tairstring.

chenyang8094 avatar chenyang8094 commented on May 24, 2024

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.

sundb avatar sundb commented on May 24, 2024

@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 photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.