{"id":22770575,"url":"https://github.com/yingzhuo/redisson-redlock-spring-boot-starter","last_synced_at":"2026-05-04T23:35:32.641Z","repository":{"id":266395215,"uuid":"898233613","full_name":"yingzhuo/redisson-redlock-spring-boot-starter","owner":"yingzhuo","description":"Redis RedLock for SpringBoot.","archived":false,"fork":false,"pushed_at":"2025-03-30T10:40:35.000Z","size":144,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-30T11:27:45.127Z","etag":null,"topics":["redis","redisson","redisson-lock","spring-boot"],"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/yingzhuo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-12-04T03:02:36.000Z","updated_at":"2025-03-30T10:40:39.000Z","dependencies_parsed_at":"2024-12-04T04:18:40.479Z","dependency_job_id":"6801dec9-3053-4f75-b7ef-827eb1846f9e","html_url":"https://github.com/yingzhuo/redisson-redlock-spring-boot-starter","commit_stats":null,"previous_names":["yingzhuo/redisson-redlock-spring-boot-starter"],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yingzhuo%2Fredisson-redlock-spring-boot-starter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yingzhuo%2Fredisson-redlock-spring-boot-starter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yingzhuo%2Fredisson-redlock-spring-boot-starter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yingzhuo%2Fredisson-redlock-spring-boot-starter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yingzhuo","download_url":"https://codeload.github.com/yingzhuo/redisson-redlock-spring-boot-starter/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246314125,"owners_count":20757457,"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":["redis","redisson","redisson-lock","spring-boot"],"created_at":"2024-12-11T15:32:48.206Z","updated_at":"2026-05-04T23:35:32.577Z","avatar_url":"https://github.com/yingzhuo.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"## redisson-redlock-spring-boot-starter\n\n[![License](https://img.shields.io/badge/License-Apache%20v2.0-red?style=flat-square)](https://www.apache.org/licenses/LICENSE-2.0)\n[![Author](https://img.shields.io/badge/yingzhor%40gmail.com-F0FF00?style=flat-square)](mailto:yingzhor@gmail.com)\n[![Maven Central](https://img.shields.io/maven-central/v/com.github.yingzhuo/redisson-redlock-spring-boot-starter.svg?label=Maven%20Central\u0026style=flat-square)](https://search.maven.org/search?q=g:%22com.github.yingzhuo%22%20AND%20a:%22redisson-redlock-spring-boot-starter%22)\n\n### 依赖 (gradle):\n\n```groovy\nimplementation 'com.github.yingzhuo:redisson-redlock-spring-boot-starter:${version}'\n```\n\n### 依赖 (maven):\n\n```xml\n\u003cdependency\u003e\n    \u003cgroupId\u003ecom.github.yingzhuo\u003c/groupId\u003e\n    \u003cartifactId\u003eredisson-redlock-spring-boot-starter\u003c/artifactId\u003e\n    \u003cscope\u003e${version}\u003c/scope\u003e\n\u003c/dependency\u003e\n```\n\n### 使用\n\n```yaml\n# application.yaml\nred-lock:\n  enabled: true\n  allow-downgrade-to-non-multi-lock: true\n  register-aop-aspect-advice: true\n  nodes:\n    - address: \"127.0.0.1:6379\"\n      username: \"root\"\n      password: \"root\"\n    - address: \"127.0.0.1:6380\"\n      username: \"root\"\n      password: \"root\"\n    - address: \"127.0.0.1:6381\"\n      username: \"root\"\n      password: \"root\"\n```\n\n```java\n@SpringBootTest(classes = TestApplication.class)\npublic class RedissonRedLockFactoryTest {\n\n    @Autowired\n    private RedissonRedLockFactory lockFactory;\n\n    @Test\n    public void test() {\n        var lock = lockFactory.createMultiLock(\"my-lock\");\n\n        lock.lock(10, TimeUnit.SECONDS);\n\n        try {\n            System.out.println(\"do some work.\");\n            System.out.println(\"do some work.\");\n        } finally {\n            if (lock.isHeldByCurrentThread()) {\n                lock.unlock();\n            }\n        }\n    }\n}\n```\n\n### 许可证\n\n* [Apache-2.0](./LICENSE.txt)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyingzhuo%2Fredisson-redlock-spring-boot-starter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyingzhuo%2Fredisson-redlock-spring-boot-starter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyingzhuo%2Fredisson-redlock-spring-boot-starter/lists"}