psisoyev / gedis

Resilient Jedis adapter for Scala made with love :heart: by Globo.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Gedis

Build Status Resilient Jedis adapter for Scala made with love ❤️ by Globo.com

Install

Add in sbt dependency:

"com.globo.bigdata" %% "gedis" % "0.0.4"

Usage

You can use for Single Instance and Sentinel with all Jedis supported functions

Single

val client:GedisClient = GedisClient(single = Option(new Jedis(host, port)))

Sentinel

val client:GedisClient = GedisClient(pool = Option(new JedisSentinelPool(masterName, hosts.asJava, password)))

Commands

All Jedis commands are supported and are simple as:

client.get("key")

Contribute

For development and contributing, please follow Contributing Guide and ALWAYS respect the Code of Conduct

About

Resilient Jedis adapter for Scala made with love :heart: by Globo.com

License:MIT License


Languages

Language:Scala 98.4%Language:Makefile 1.6%