File tree Expand file tree Collapse file tree 1 file changed +24
-0
lines changed
Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -1283,6 +1283,30 @@ jnosql.keyvalue.provider=org.eclipse.jnosql.databases.redis.communication.RedisC
12831283jnosql.keyvalue.database=heroes
12841284----
12851285
1286+ === RedisBucketManagerFactory
1287+
1288+ The ```RedisBucketManagerFactory``` is a specialization of the ```BucketManagerFactory``` that enables ranking and counter feature.
1289+
1290+ [source,java]
1291+ ----
1292+ @Inject
1293+ RedisBucketManagerFactory factory;
1294+ ...
1295+ SortedSet game = factory.getSortedSet("game");
1296+ game.add("Otavio", 10);
1297+ game.add("Luiz", 20);
1298+ game.add("Ada", 30);
1299+ game.add(Ranking.of("Poliana", 40));
1300+
1301+ List<Ranking> ranking = game.getRanking();
1302+
1303+ Counter home = factory.getCounter("home");
1304+ Counter products = factory.getCounter("products");
1305+ home.increment();
1306+ products.increment();
1307+ products.increment(3L);
1308+ ----
1309+
12861310== Riak
12871311
12881312image::https://jnosql.github.io/img/logos/riak.png[Riak Project,align="center" width=25%,height=25%]
You can’t perform that action at this time.
0 commit comments