Skip to content

Commit 0693efa

Browse files
committed
docs: update readme with redis new feature
Signed-off-by: Otavio Santana <[email protected]>
1 parent 951c956 commit 0693efa

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

README.adoc

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1283,6 +1283,30 @@ jnosql.keyvalue.provider=org.eclipse.jnosql.databases.redis.communication.RedisC
12831283
jnosql.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

12881312
image::https://jnosql.github.io/img/logos/riak.png[Riak Project,align="center" width=25%,height=25%]

0 commit comments

Comments
 (0)