{"id":25737253,"url":"https://github.com/shihuili1218/klein","last_synced_at":"2025-04-09T21:22:41.293Z","repository":{"id":61901759,"uuid":"553561807","full_name":"shihuili1218/klein","owner":"shihuili1218","description":"🔥 Klein is a Paxos based distributed collection tool library, including distributed ArrayList, distributed HashMap, distributed Cache, distributed Lock, etc..","archived":false,"fork":false,"pushed_at":"2024-04-12T08:05:04.000Z","size":1215,"stargazers_count":247,"open_issues_count":5,"forks_count":15,"subscribers_count":4,"default_branch":"main","last_synced_at":"2024-04-12T15:24:01.884Z","etag":null,"topics":["algorithms","cache","consensus","distributed","distributed-systems","paxos","raft"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/shihuili1218.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2022-10-18T12:05:59.000Z","updated_at":"2024-04-15T03:58:09.263Z","dependencies_parsed_at":"2024-02-10T03:28:48.677Z","dependency_job_id":"d17216c1-a282-4d1f-8b5a-501f5e08bbb5","html_url":"https://github.com/shihuili1218/klein","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shihuili1218%2Fklein","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shihuili1218%2Fklein/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shihuili1218%2Fklein/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shihuili1218%2Fklein/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shihuili1218","download_url":"https://codeload.github.com/shihuili1218/klein/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248112878,"owners_count":21049742,"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","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":["algorithms","cache","consensus","distributed","distributed-systems","paxos","raft"],"created_at":"2025-02-26T06:39:20.555Z","updated_at":"2025-04-09T21:22:41.270Z","avatar_url":"https://github.com/shihuili1218.png","language":"Java","funding_links":[],"categories":["分布式开发"],"sub_categories":[],"readme":"### [中文](readme_zh_cn.md)\n\n\u003cp align=\"center\"\u003e\n    \u003cstrong\u003eThanks to JetBrains for the \u003ca target=\"_blank\" href=\"https://www.jetbrains.com/community/opensource\"\u003efree license\u003c/a\u003e.\u003c/strong\u003e\n    \u003cbr/\u003e\n    \u003cstrong\u003eOpen source：\u003c/strong\u003e \u003ca target=\"_blank\" href='https://gitee.com/bleemliu/klein'\u003eGitee\u003c/a\u003e | \u003ca target=\"_blank\" href='https://github.com/shihuili1218/klein'\u003eGithub\u003c/a\u003e | \u003ca target=\"_blank\" href='https://gitcode.net/gege87417376/klein'\u003eCodeChina\u003c/a\u003e\n    \u003cbr/\u003e\n    \u003cstrong\u003eDocument：\u003c/strong\u003e \u003ca target=\"_blank\" href='https://klein-doc.gitbook.io/zh_cn'\u003eGitbook\u003c/a\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n   \u003ca href=\"https://gitter.im/klein-gitter/community?utm_source=badge\u0026utm_medium=badge\u0026utm_campaign=pr-badge\u0026utm_content=badge\"\u003e\u003cimg src=\"https://badges.gitter.im/klein-gitter/community.svg\"  alt=\"\"/\u003e\u003c/a\u003e\n    \u0026nbsp;\n    \u003ca href=\"https://www.codacy.com/gh/shihuili1218/klein/dashboard?utm_source=github.com\u0026amp;utm_medium=referral\u0026amp;utm_content=shihuili1218/klein\u0026amp;utm_campaign=Badge_Grade\"\u003e\u003cimg src=\"https://app.codacy.com/project/badge/Grade/764fda630fd845949ae492a1f6469173\" alt=\"\" /\u003e\u003c/a\u003e\n    \u0026nbsp;\n    \u003ca href=\"https://github.com/shihuili1218/klein/actions/workflows/mvn_test.yml\"\u003e\u003cimg src=\"https://github.com/shihuili1218/klein/actions/workflows/mvn_test.yml/badge.svg\" alt=\"\" /\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n    \u003ca href=\"LICENSE\"\u003e\u003cimg src=\"https://img.shields.io/badge/license-Apache--2.0-blue\" alt=\"\"/\u003e\u003c/a\u003e\n    \u0026nbsp;\n    \u003ca href=\"https://search.maven.org/search?q=g:com.ofcoder.klein%20AND%20klein\"\u003e\u003cimg src=\"https://img.shields.io/maven-central/v/com.ofcoder.klein/klein.svg?label=maven%20central\" alt=\"\" /\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n# Introduce\n![logo](logo.svg)\n\nKlein is a distributed collection tool library based on Paxos, including distributed Cache, distributed message queue, distributed List, distributed Map, distributed Lock and so on. What's interesting about this is that you can keep data consistent across members without relying on any middleware.\n\nYou can understand that Klein is a distributed tool that depends on your project through Maven. We hope it will replace your existing Redis, messaging middleware, registry, configuration center, etc.\n\nIf you are interested in distributed message queue, distributed List, distributed Map, distributed Lock, we can share the existing design, you can participate in the coding work. 😆 😆 😆\n\n**Look forward to your star⭐**\n\n# Quick Start\n### dependence klein\n```xml\n\u003cdependency\u003e\n    \u003cgroupId\u003ecom.ofcoder.klein.core\u003c/groupId\u003e\n    \u003cartifactId\u003eklein-core\u003c/artifactId\u003e\n    \u003cversion\u003e{last-version}\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\n### startup\n```\nKlein instance = Klein.startup();\ninstance.awaitInit();\n\nKleinCache klein = KleinFactory.getInstance().createCache(\"klein\");\nklein.put(\"hello\", \"klein\");\n\nKleinCache lock = KleinFactory.getInstance().createLock(\"klein\");\ncache.acquire(1, TimeUnit.SECONDS);\n```\n### set property\nFor all configurable parameters, see: `com.ofcoder.klein.KleinProp`\n\nYou can set it through `System#setProperty` or get the `KleinProp` object\n```\nSystem.setProperty(\"klein.id\", \"2\")\n\n// or\n\nKleinProp prop = KleinProp.loadIfPresent();\n```\n\n# Jepsen Test\n\n[Run on Gitpod](https://gitpod.io/#/github.com/shihuili1218/klein)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshihuili1218%2Fklein","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshihuili1218%2Fklein","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshihuili1218%2Fklein/lists"}