
Jedis
A Java client library for talking to Redis servers from Java code.
- Stars
- 12.4k
- Forks
- 3.9k
- Licence
- MIT
- Language
- Java
- Last update
- 4 days ago
- Type
- Library
What it is
Jedis is a Java library that lets Java programs send commands to a Redis server, a fast data store often used for caching and quick lookups. You add it as a dependency in your Java project and call methods that map to Redis commands. The README describes it as designed for performance and ease of use.
- Store and read simple values or sets from a Java web service
- Connect a Java application to a Redis Cluster using RedisClusterClient
- Configure retry and failover across more than one Redis deployment
- Use token-based authentication with the extension library, including Microsoft EntraID
Great for
- Java developers who need to read and write data in Redis from an application
- Teams building Java services that use Redis Cluster
- Projects that need Redis JSON or vector set support through a Java client
- Developers who want a client with Maven Central distribution and Javadocs
Not ideal for
- People who want a high-level object mapping layer; the README points to redis-om-spring for that
- Non-Java projects, since this is a Java library (JDK 8 or newer per the compatibility table)
- Anyone who needs a Redis server itself; Jedis is only the client
How to get it
- 1
Install with a package manager
You'll need: Java JDK (version 8, 11, 17, 21, or 25 depending on Jedis version) · Maven or another Java build tool · A running Redis server (the README suggests Docker)
Run a local Redis server with Docker
docker run -p 6379:6379 -it redis:latestMaven dependency (add to pom.xml)
<dependency><groupId>redis.clients</groupId><artifactId>jedis</artifactId><version>8.0.1</version></dependency> - 2
Run it
- Start a Redis server, for example with the Docker command in the README.
- Add the Jedis Maven dependency to your Java project.
- Create a RedisClient with hostAndPort("localhost", 6379) and build it.
- Call a command such as sadd("planets", "Venus") and check the result.
- 3
Get the most out of it
- Use RedisClusterClient with a set of HostAndPort nodes when connecting to a Redis Cluster.
- Read the failover documentation if you run more than one Redis deployment.
- Check the Advanced Usage page for token-based authentication and the extension library.
- Browse the examples package in the test source code for working use cases.
Downloads
Strengths
- Covers all Redis data types according to the README, including JSON and VectorSets
- Documented compatibility table listing supported Redis and JDK versions
- MIT licensed, with Javadocs and a documentation site
Trade-offs
- Compatibility depends on version: the table shows different Redis and JDK support ranges for each Jedis release line
- Some advanced features (failover, token auth) need extra reading in separate docs pages
- The README snippet is truncated, so full API details are not visible here
How it compares
| Project | Stars | Type | Level | Updated | Best for |
|---|---|---|---|---|---|
| jedis (this) | 12.4k | Library | intermediate | 4 days ago | Java developers who need to read and write data in Redis from an application |
| ioredis | 15.4k | Library | beginner | 4 days ago | Node.js backend developers who already run Redis and want a full-featured client |
| redis-py | 13.7k | Library | beginner | 4 days ago | Python developers who need to read and write data in a Redis server |
| AnotherRedisDesktopManager | 34.8k | App | beginner | 3 months ago | Developers who prefer a visual interface over redis-cli for inspecting keys |
| node-redis | 17.6k | Library | intermediate | 4 days ago | Node.js developers who need to read and write Redis data from an application |
| codis | 13.2k | Dev tool | advanced | 2.6 years ago | Teams running Redis that have outgrown a single server |
Stats synced from GitHub. The assessment above was drafted with AI from the project's README on 2026-10-29 and may miss recent changes — check the README before relying on a command. MIT licence: free to use, modify and distribute, including commercially, as long as you keep the copyright notice.