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");
}