Comments (5)
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.
Thanks a lot :)
from mod-redis.
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.
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.
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)
- Unstable on high load with complex results HOT 3
- Implement transaction support in the client lib HOT 1
- Implement transaction support in the driver lib HOT 1
- reduce the amount of compile warnings
- Mulitple Redis connection from a single verticle HOT 5
- Socket client error, broken pipe HOT 7
- Best approach for multiple access to redis HOT 4
- OutOfBoundsException when calling a method without parameters on the client
- timeout HOT 2
- hgetall fails on key with large number of fields HOT 16
- What is expected blocking behavior with blpop? HOT 2
- clojure error: mod.json must contain a "main" field HOT 1
- gradle build not working on master branch HOT 1
- SEVERE: ERR Client sent AUTH, but no password is set HOT 1
- Does vert-x3/vertx-redis-client replace mod-redis? HOT 2
- Extraction of handlers based on patterns HOT 2
- Getting rid of Groovy dependency HOT 4
- setex command support HOT 1
- Binary support using BSON HOT 1
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 mod-redis.