Common code and libraries for NoSQL databases.
1

DatabaseCommons

A common library for NoSQL databases.

Currently, this provides common configs for getting the NoSQL clients from a service or you can use the configs in your own projects.

Examples

A pool of Redis clients from the service:

RedisService rs = game.getServiceManager().provide(RedisService.class).get();
JedisPool pool = rs.getPool();

Using Redis:

//get the service
RedisService rs = game.getServiceManager().provide(RedisService.class).get();
//get a client and set a key in the Redis database.
try (Jedis jedis = rs.getJedis()) {
    jedis.set("key", "value");
}

Category: Developer Tools

Published on Oct 4, 2017

views

stars

watchers

total downloads

Promoted Versions

Pages

Members