{"id":19695791,"url":"https://github.com/codislabs/jodis","last_synced_at":"2025-10-13T06:05:45.227Z","repository":{"id":71445248,"uuid":"44225752","full_name":"CodisLabs/jodis","owner":"CodisLabs","description":"A java client for codis based on Jedis and Curator","archived":false,"fork":false,"pushed_at":"2019-01-30T03:02:16.000Z","size":42,"stargazers_count":218,"open_issues_count":6,"forks_count":96,"subscribers_count":26,"default_branch":"master","last_synced_at":"2025-10-13T06:03:36.097Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/CodisLabs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-10-14T05:23:30.000Z","updated_at":"2025-08-13T11:14:06.000Z","dependencies_parsed_at":null,"dependency_job_id":"77936b2d-bba5-4641-8f42-3b710783b91a","html_url":"https://github.com/CodisLabs/jodis","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/CodisLabs/jodis","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodisLabs%2Fjodis","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodisLabs%2Fjodis/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodisLabs%2Fjodis/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodisLabs%2Fjodis/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CodisLabs","download_url":"https://codeload.github.com/CodisLabs/jodis/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodisLabs%2Fjodis/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279013944,"owners_count":26085431,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-13T02:00:06.723Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-11T19:30:44.711Z","updated_at":"2025-10-13T06:05:45.197Z","avatar_url":"https://github.com/CodisLabs.png","language":"Java","readme":"# Jodis - Java client for codis\n\n[![Build Status](https://travis-ci.org/CodisLabs/jodis.svg)](https://travis-ci.org/CodisLabs/jodis)\n\nJodis is a java client for codis based on [Jedis](https://github.com/xetorthio/jedis) and [Curator](http://curator.apache.org/).\n\n# Features\n- Use a round robin policy to balance load to multiple codis proxies.\n- Detect proxy online and offline automatically.\n\n# How to use\nAdd this to your pom.xml. We deploy jodis to https://oss.sonatype.org.\n```xml\n\u003cdependency\u003e\n  \u003cgroupId\u003eio.codis.jodis\u003c/groupId\u003e\n  \u003cartifactId\u003ejodis\u003c/artifactId\u003e\n  \u003cversion\u003e0.5.1\u003c/version\u003e\n\u003c/dependency\u003e\n```\nTo use it for Codis2.x:\n```java\nJedisResourcePool jedisPool = RoundRobinJedisPool.create()\n        .curatorClient(\"zkserver:2181\", 30000).zkProxyDir(\"/zk/codis/db_xxx/proxy\").build();\ntry (Jedis jedis = jedisPool.getResource()) {\n    jedis.set(\"foo\", \"bar\");\n    String value = jedis.get(\"foo\");\n    System.out.println(value);\n}\n```\nOr for Codis3.x with `jodis_compatible=false`:\n```java\nJedisResourcePool jedisPool = RoundRobinJedisPool.create()\n        .curatorClient(\"zkserver:2181\", 30000).zkProxyDir(\"/jodis/xxx\").build();\ntry (Jedis jedis = jedisPool.getResource()) {\n    jedis.set(\"foo\", \"bar\");\n    String value = jedis.get(\"foo\");\n    System.out.println(value);\n}\n```\nNote: JDK8 is required to use and build jodis, as JDK7 has been EOL since May 2015.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodislabs%2Fjodis","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodislabs%2Fjodis","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodislabs%2Fjodis/lists"}