February 2018
Intermediate to advanced
382 pages
11h 33m
English
To show how to connect Redis with Java, the first requirement for using Jedis in our Java application is including the library in the project. We can either download the Jedis library JAR file and add its path to CLASSPATH, or use build tools such as Maven, Gradle, or Bazel to manage the library dependencies. In examples of this recipe, we use Gradle to include Jedis as a dependency of our project.
Add the following line to the dependencies section of build.gradle:
compile group: 'redis.clients', name: 'jedis', version: '2.9.0'
Read now
Unlock full access