Git Product home page Git Product logo

Comments (5)

pmlopes avatar pmlopes commented on July 23, 2024

No, not at all, there was no proper documentation, I've added some basic pointers on how to use the mod-redis-client in the Readme.

It should be:

// create a new client
RedisClient redis = new RedisClient(eventBus(), "my.redis.address");
// deploy a mod-redis module with the default config
redis.deployModule(container());

// use the API
redis.set("key", "value", new Handler<Message<JsonObject>>() {
   ...
   // handle your response
});

from mod-redis.

loicdescotte avatar loicdescotte commented on July 23, 2024

Thanks a lot :)

from mod-redis.

kvsrikanth avatar kvsrikanth commented on July 23, 2024

Hi,

I have seen the below code mentioned by you in the redis module read me also.

// create a new client
RedisClient redis = new RedisClient(eventBus(), "my.redis.address");
// deploy a mod-redis module with the default config
redis.deployModule(container());

// use the API
redis.set("key", "value", new Handler<Message>() {
...
// handle your response
});


Currently i am using this redis module by sending config and command as a JSON to event bus with the redis address.

My doubt is where will RedisClient class located ??
i couldn't be able to import this class, pls let me know.

from mod-redis.

pmlopes avatar pmlopes commented on July 23, 2024

You need to import the jar from maven, the gav is:
io.vertx:mod-redis-client:1.1.3

and set it as a compile dependency (this way you don't need to have in the deploys mod.json) or as a provided dependency and then you have to have it on the mod.json.

For a working example see here:

https://github.com/pmlopes/yoke/tree/master/examples/kitcms

from mod-redis.

kvsrikanth avatar kvsrikanth commented on July 23, 2024

Thanks alot..i don't know much on maven...i will find out and check your example also...let me know if you have alternatives also..

from mod-redis.

Related Issues (20)

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.