[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-4060":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":16,"stars7d":17,"stars30d":18,"stars90d":16,"forks30d":16,"starsTrendScore":16,"compositeScore":19,"rankGlobal":10,"rankLanguage":10,"license":20,"archived":21,"fork":21,"defaultBranch":22,"hasWiki":23,"hasPages":23,"topics":24,"createdAt":10,"pushedAt":10,"updatedAt":28,"readmeContent":29,"aiSummary":30,"trendingCount":16,"starSnapshotCount":16,"syncStatus":31,"lastSyncTime":32,"discoverSource":33},4060,"jedis","redis\u002Fjedis","redis","Redis Java client","https:\u002F\u002Fredis.github.io\u002Fjedis\u002F",null,"Java",12330,3900,664,68,0,1,17,72.2,"MIT License",false,"master",true,[25,5,7,26,27],"java","redis-client","redis-cluster","2026-06-12 04:00:21","# Jedis\n\n[![Release](https:\u002F\u002Fimg.shields.io\u002Fgithub\u002Frelease\u002Fredis\u002Fjedis.svg?sort=semver)](https:\u002F\u002Fgithub.com\u002Fredis\u002Fjedis\u002Freleases\u002Flatest)\n[![Maven Central](https:\u002F\u002Fimg.shields.io\u002Fmaven-central\u002Fv\u002Fredis.clients\u002Fjedis.svg)](https:\u002F\u002Fcentral.sonatype.com\u002Fartifact\u002Fredis.clients\u002Fjedis)\n[![Javadocs](https:\u002F\u002Fwww.javadoc.io\u002Fbadge\u002Fredis.clients\u002Fjedis.svg)](https:\u002F\u002Fwww.javadoc.io\u002Fdoc\u002Fredis.clients\u002Fjedis)\n[![MIT licensed](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Flicense-MIT-blue.svg)](https:\u002F\u002Fgithub.com\u002Fredis\u002Fjedis\u002Fblob\u002Fmaster\u002FLICENSE)\n[![codecov](https:\u002F\u002Fcodecov.io\u002Fgh\u002Fredis\u002Fjedis\u002Fbranch\u002Fmaster\u002Fgraph\u002Fbadge.svg?token=pAstxAAjYo)](https:\u002F\u002Fcodecov.io\u002Fgh\u002Fredis\u002Fjedis)\n[![Discord](https:\u002F\u002Fimg.shields.io\u002Fdiscord\u002F697882427875393627?style=flat-square)](https:\u002F\u002Fdiscord.gg\u002Fredis)\n\n## What is Jedis?\n\nJedis is a Java client for [Redis](https:\u002F\u002Fgithub.com\u002Fredis\u002Fredis \"Redis\") designed for performance and ease of use.\n\nAre you looking for a high-level library to handle object mapping? See [redis-om-spring](https:\u002F\u002Fgithub.com\u002Fredis\u002Fredis-om-spring)!\n\n## How do I Redis?\n\n[Learn for free at Redis University](https:\u002F\u002Funiversity.redis.io\u002Facademy\u002F)\n\n[Try the Redis Cloud](https:\u002F\u002Fredis.io\u002Ftry-free\u002F)\n\n[Dive in developer tutorials](https:\u002F\u002Fredis.io\u002Flearn\u002F)\n\n[Join the Redis community](https:\u002F\u002Fredis.io\u002Fcommunity\u002F)\n\n[Work at Redis](https:\u002F\u002Fredis.io\u002Fcareers\u002Fjobs\u002F)\n\n## Supported Redis versions\n\nThe most recent version of this library supports redis version \n[7.2](https:\u002F\u002Fgithub.com\u002Fredis\u002Fredis\u002Fblob\u002F7.2\u002F00-RELEASENOTES),\n[7.4](https:\u002F\u002Fgithub.com\u002Fredis\u002Fredis\u002Fblob\u002F7.4\u002F00-RELEASENOTES),\n[8.0](https:\u002F\u002Fgithub.com\u002Fredis\u002Fredis\u002Fblob\u002F8.0\u002F00-RELEASENOTES),\n[8.2](https:\u002F\u002Fgithub.com\u002Fredis\u002Fredis\u002Fblob\u002F8.2\u002F00-RELEASENOTES) and\n[8.4](https:\u002F\u002Fgithub.com\u002Fredis\u002Fredis\u002Fblob\u002F8.4\u002F00-RELEASENOTES).\n\nThe table below highlights version compatibility of the most-recent library versions with Redis and JDK versions. Compatibility means communication features, and Redis command capabilities.\n\n\n| Jedis version | Supported Redis versions              | JDK Compatibility |\n|---------------|---------------------------------------|-------------------|\n| 3.9+          | 5.0 to 6.2 Family of releases         | 8, 11             |\n| >= 4.0        | Version 5.0 to 7.2 Family of releases | 8, 11, 17         |\n| >= 5.0        | Version 6.0 to current                | 8, 11, 17, 21     |\n| >= 5.2        | Version 7.2 to current                | 8, 11, 17, 21     |\n| >= 6.0        | Version 7.2 to current                | 8, 11, 17, 21     |\n| >= 7.0        | Version 7.2 to current                | 8, 11, 17, 21     |\n\n## Getting started\n\nTo get started with Jedis, first add it as a dependency in your Java project. If you're using Maven, that looks like this:\n\n```xml\n\u003Cdependency>\n    \u003CgroupId>redis.clients\u003C\u002FgroupId>\n    \u003CartifactId>jedis\u003C\u002FartifactId>\n    \u003Cversion>7.1.0\u003C\u002Fversion>\n\u003C\u002Fdependency>\n```\n\nTo use the cutting-edge Jedis, check [here](https:\u002F\u002Fredis.github.io\u002Fjedis\u002Fjedis-maven\u002F).\n\nNext, you'll need to connect to Redis. Consider installing a redis server with docker:\n\n```bash\ndocker run -p 6379:6379 -it redis:latest\n```\n\nYou can instantiate a RedisClient like so:\n\n```java\nRedisClient jedis = RedisClient.builder().hostAndPort(\"localhost\", 6379).build();\n```\n\nNow you can send commands:\n\n```java\njedis.sadd(\"planets\", \"Venus\");\n```\n\n## Connecting to a Redis cluster\n\nJedis lets you connect to Redis Clusters, supporting the [Redis Cluster Specification](https:\u002F\u002Fredis.io\u002Ftopics\u002Fcluster-spec).\nTo do this, you'll need to connect using `RedisClusterClient`. See the example below:\n\n```java\nSet\u003CHostAndPort> jedisClusterNodes = new HashSet\u003CHostAndPort>();\njedisClusterNodes.add(new HostAndPort(\"127.0.0.1\", 7379));\njedisClusterNodes.add(new HostAndPort(\"127.0.0.1\", 7380));\nRedisClusterClient jedis = RedisClusterClient.builder().nodes(jedisClusterNodes).build();\n```\n\nNow you can use the `RedisClusterClient` instance and send commands like you would with a standard pooled connection:\n\n```java\njedis.sadd(\"planets\", \"Mars\");\n```\n\n## Support for Redis data types\n\nJedis includes support for all [Redis data types](https:\u002F\u002Fredis.io\u002Fdocs\u002Flatest\u002Fdevelop\u002Fdata-types\u002F) and features such as\n[JSON](https:\u002F\u002Fredis.io\u002Fdocs\u002Flatest\u002Fdevelop\u002Fdata-types\u002Fjson\u002F) and [VectorSets](https:\u002F\u002Fredis.io\u002Fdocs\u002Flatest\u002Fdevelop\u002Fdata-types\u002Fvector-sets\u002F).\n\n## Failover\n\nJedis supports retry and failover for your Redis deployments. This is useful when:\n\n1. You have more than one Redis deployment. This might include two independent Redis servers or two or more Redis databases replicated across multiple [active-active Redis Enterprise](https:\u002F\u002Fredis.io\u002Fdocs\u002Flatest\u002Foperate\u002Frs\u002Fdatabases\u002Factive-active\u002F) clusters.\n2. You want your application to connect to one deployment at a time and to fail over to the next available deployment if the first deployment becomes unavailable.\n\nFor the complete failover configuration options and examples, see the [Jedis failover docs](https:\u002F\u002Fredis.github.io\u002Fjedis\u002Ffailover\u002F).\n\n## Token-Based Authentication\n\nJedis supports Token-Based authentication (TBA) starting with 5.3.0 GA release. This feature is complemented by an extension library that enhances the developer experience and provides most of the components required for TBA functionality.\n\nNotably, the extension library includes built-in support for **Microsoft EntraID**, offering a seamless integration as part of the generic solution.\n\nFor more details and examples, please refer to the [Advanced Usage](https:\u002F\u002Fredis.github.io\u002Fjedis\u002Fadvanced-usage\u002F) documentation.\n\n## Documentation\n\nThe [Jedis documentation site](https:\u002F\u002Fredis.github.io\u002Fjedis\u002F) contains several useful articles for using Jedis.\n\nYou can also check the [latest Jedis Javadocs](https:\u002F\u002Fwww.javadoc.io\u002Fdoc\u002Fredis.clients\u002Fjedis\u002Flatest\u002Findex.html).\n\nSome specific use-case examples can be found in [`redis.clients.jedis.examples`\npackage](https:\u002F\u002Fgithub.com\u002Fredis\u002Fjedis\u002Ftree\u002Fmaster\u002Fsrc\u002Ftest\u002Fjava\u002Fredis\u002Fclients\u002Fjedis\u002Fexamples\u002F) of the test source codes.\n\n## Troubleshooting\n\nIf you run into trouble or have any questions, we're here to help!\n\nHit us up on the [Redis Discord Server](http:\u002F\u002Fdiscord.gg\u002Fredis) or \n[Jedis GitHub Discussions](https:\u002F\u002Fgithub.com\u002Fredis\u002Fjedis\u002Fdiscussions).\n\n## Contributing\n\nWe'd love your contributions!\n\nBug reports are always welcome! [You can open a bug report on GitHub](https:\u002F\u002Fgithub.com\u002Fredis\u002Fjedis\u002Fissues\u002Fnew).\n\nYou can also contribute documentation -- or anything to improve Jedis. Please see\n[contribution guideline](https:\u002F\u002Fgithub.com\u002Fredis\u002Fjedis\u002Fblob\u002Fmaster\u002F.github\u002FCONTRIBUTING.md) for more details.\n\n## License\n\nJedis is licensed under the [MIT license](https:\u002F\u002Fgithub.com\u002Fredis\u002Fjedis\u002Fblob\u002Fmaster\u002FLICENSE).\n\n## Sponsorship\n\n[![Redis Logo](https:\u002F\u002Fraw.githubusercontent.com\u002Fredis\u002Fjedis\u002Fmaster\u002Fredis-logo-full-color-rgb.png)](https:\u002F\u002Fredis.io\u002F)\n","Jedis 是一个为 Redis 设计的高性能且易于使用的 Java 客户端。它支持多种 Redis 版本，并提供了全面的 Redis 命令支持，包括集群模式下的操作。Jedis 通过简洁的 API 设计使得开发者能够方便地进行数据存取、发布订阅等操作。适用于需要高效缓存、消息队列或数据存储的各种 Java 应用场景中，特别是在对性能有较高要求的情况下。此外，Jedis 还保持了良好的 JDK 兼容性，确保在不同版本的 Java 环境下都能稳定运行。",2,"2026-06-11 02:58:11","top_language"]