{"id":37020207,"url":"https://github.com/naah69/spring-boot-starter-redisson","last_synced_at":"2026-01-14T02:16:33.517Z","repository":{"id":37159379,"uuid":"199128014","full_name":"naah69/spring-boot-starter-redisson","owner":"naah69","description":"a redisson starter bind redisTemplate and  support single,cluster,sentinel and more.omit redisson.yaml","archived":false,"fork":false,"pushed_at":"2022-06-17T02:22:19.000Z","size":75,"stargazers_count":6,"open_issues_count":1,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-28T12:41:31.531Z","etag":null,"topics":["redisson","reids","spring-boot","spring-boot-starter-redisson","spring-cloud","spring-data-redis","springboot2"],"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/naah69.png","metadata":{"files":{"readme":"README.en.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}},"created_at":"2019-07-27T06:50:03.000Z","updated_at":"2021-04-29T15:49:28.000Z","dependencies_parsed_at":"2022-09-26T21:51:01.879Z","dependency_job_id":null,"html_url":"https://github.com/naah69/spring-boot-starter-redisson","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/naah69/spring-boot-starter-redisson","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/naah69%2Fspring-boot-starter-redisson","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/naah69%2Fspring-boot-starter-redisson/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/naah69%2Fspring-boot-starter-redisson/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/naah69%2Fspring-boot-starter-redisson/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/naah69","download_url":"https://codeload.github.com/naah69/spring-boot-starter-redisson/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/naah69%2Fspring-boot-starter-redisson/sbom","scorecard":{"id":672335,"data":{"date":"2025-08-11","repo":{"name":"github.com/naah69/spring-boot-starter-redisson","commit":"b717e572c019e591883c9d4ed88a461b61c99d7b"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.5,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Code-Review","score":0,"reason":"Found 0/10 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":0,"reason":"Project has not signed or included provenance with any releases.","details":["Warn: release artifact 1.0.0 not signed: https://api.github.com/repos/naah69/spring-boot-starter-redisson/releases/18907119","Warn: release artifact 1.0.0 does not have provenance: https://api.github.com/repos/naah69/spring-boot-starter-redisson/releases/18907119"],"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":0,"reason":"126 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-vmq6-5m68-f53m","Warn: Project is vulnerable to: GHSA-668q-qrv7-99fm","Warn: Project is vulnerable to: GHSA-6v67-2wr5-gvf4","Warn: Project is vulnerable to: GHSA-pr98-23f8-jwxv","Warn: Project is vulnerable to: GHSA-pv7h-hx5h-mgfj","Warn: Project is vulnerable to: GHSA-h46c-h94j-95f3","Warn: Project is vulnerable to: GHSA-wf8f-6423-gfxg","Warn: Project is vulnerable to: GHSA-27xj-rqx5-2255","Warn: Project is vulnerable to: GHSA-288c-cq4h-88gq","Warn: Project is vulnerable to: GHSA-4w82-r329-3q67","Warn: Project is vulnerable to: GHSA-57j2-w4cx-62h2","Warn: Project is vulnerable to: GHSA-58pp-9c76-5625","Warn: Project is vulnerable to: GHSA-5949-rw7g-wx7w","Warn: Project is vulnerable to: GHSA-5p34-5m6p-p58g","Warn: Project is vulnerable to: GHSA-5r5r-6hpj-8gg9","Warn: Project is vulnerable to: GHSA-5ww9-j83m-q7qx","Warn: Project is vulnerable to: GHSA-6fpp-rgj9-8rwc","Warn: Project is vulnerable to: GHSA-758m-v56v-grj4","Warn: Project is vulnerable to: GHSA-85cw-hj65-qqv9","Warn: Project is vulnerable to: GHSA-89qr-369f-5m5x","Warn: Project is vulnerable to: GHSA-8c4j-34r4-xr8g","Warn: Project is vulnerable to: GHSA-8w26-6f25-cm9x","Warn: Project is vulnerable to: GHSA-95cm-88f5-f2c7","Warn: Project is vulnerable to: GHSA-9gph-22xh-8x98","Warn: Project is vulnerable to: GHSA-9m6f-7xcq-8vf8","Warn: Project is vulnerable to: GHSA-9vvp-fxw6-jcxr","Warn: Project is vulnerable to: GHSA-c265-37vj-cwcc","Warn: Project is vulnerable to: GHSA-c2q3-4qrh-fm48","Warn: Project is vulnerable to: GHSA-cf6r-3wgc-h863","Warn: Project is vulnerable to: GHSA-cmfg-87vq-g5g4","Warn: Project is vulnerable to: GHSA-cvm9-fjm9-3572","Warn: Project is vulnerable to: GHSA-f3j5-rmmp-3fc5","Warn: Project is vulnerable to: GHSA-f9xh-2qgp-cq57","Warn: Project is vulnerable to: GHSA-fmmc-742q-jg75","Warn: Project is vulnerable to: GHSA-fqwf-pjwf-7vqv","Warn: Project is vulnerable to: GHSA-gjmw-vf9h-g25v","Warn: Project is vulnerable to: GHSA-gwp4-hfv6-p7hw","Warn: Project is vulnerable to: GHSA-gww7-p5w4-wrfv","Warn: Project is vulnerable to: GHSA-h3cw-g4mq-c5x2","Warn: Project is vulnerable to: GHSA-h4rc-386g-6m85","Warn: Project is vulnerable to: GHSA-h822-r4r5-v8jg","Warn: Project is vulnerable to: GHSA-j823-4qch-3rgm","Warn: Project is vulnerable to: GHSA-jjjh-jjxp-wpff","Warn: Project is vulnerable to: GHSA-m6x4-97wx-4q27","Warn: Project is vulnerable to: GHSA-mc6h-4qgp-37qh","Warn: Project is vulnerable to: GHSA-mph4-vhrx-mv67","Warn: Project is vulnerable to: GHSA-mx7p-6679-8g3q","Warn: Project is vulnerable to: GHSA-p43x-xfjf-5jhr","Warn: Project is vulnerable to: GHSA-q93h-jc49-78gg","Warn: Project is vulnerable to: GHSA-qjw2-hr98-qgfh","Warn: Project is vulnerable to: GHSA-qmqc-x3r4-6v39","Warn: Project is vulnerable to: GHSA-r3gr-cxrf-hg25","Warn: Project is vulnerable to: GHSA-r695-7vr9-jgc2","Warn: Project is vulnerable to: GHSA-rf6r-2c4q-2vwg","Warn: Project is vulnerable to: GHSA-rgv9-q543-rqg4","Warn: Project is vulnerable to: GHSA-rpr3-cw39-3pxh","Warn: Project is vulnerable to: GHSA-v3xw-c963-f5hc","Warn: Project is vulnerable to: GHSA-v585-23hc-c647","Warn: Project is vulnerable to: GHSA-vfqx-33qm-g869","Warn: Project is vulnerable to: GHSA-wh8g-3j2c-rqj5","Warn: Project is vulnerable to: GHSA-9vjp-v76f-g363","Warn: Project is vulnerable to: GHSA-grg4-wf29-r9vv","Warn: Project is vulnerable to: GHSA-389x-839f-4rhx","Warn: Project is vulnerable to: GHSA-xq3w-v528-46rv","Warn: Project is vulnerable to: GHSA-6mjq-h674-j845","Warn: Project is vulnerable to: GHSA-mm9x-g8pc-w292","Warn: Project is vulnerable to: GHSA-p2v9-g2qv-p635","Warn: Project is vulnerable to: GHSA-2w73-fqqj-c92p","Warn: Project is vulnerable to: GHSA-339q-62wm-c39w","Warn: Project is vulnerable to: GHSA-3jrv-jgp8-45v3","Warn: Project is vulnerable to: GHSA-9442-gm4v-r222","Warn: Project is vulnerable to: GHSA-95rf-557x-44g5","Warn: Project is vulnerable to: GHSA-9623-mqmm-5rcf","Warn: Project is vulnerable to: GHSA-97cq-f4jm-mv8h","Warn: Project is vulnerable to: GHSA-cccf-7xw3-p2vr","Warn: Project is vulnerable to: GHSA-ch7q-gpff-h9hp","Warn: Project is vulnerable to: GHSA-fj7c-vg2v-ccrm","Warn: Project is vulnerable to: GHSA-g4cp-h53p-v3v8","Warn: Project is vulnerable to: GHSA-gv2w-88hx-8m9r","Warn: Project is vulnerable to: GHSA-jwgx-9mmh-684w","Warn: Project is vulnerable to: GHSA-m4mm-pg93-fv78","Warn: Project is vulnerable to: GHSA-mfhv-gwf8-4m88","Warn: Project is vulnerable to: GHSA-p9w3-gwc2-cr49","Warn: Project is vulnerable to: GHSA-pfcc-3g6r-8rg8","Warn: Project is vulnerable to: GHSA-qjwc-v72v-fq6r","Warn: Project is vulnerable to: GHSA-rf6q-vx79-mjxr","Warn: Project is vulnerable to: GHSA-rhcw-wjcm-9h6g","Warn: Project is vulnerable to: GHSA-v76w-3ph8-vm66","Warn: Project is vulnerable to: GHSA-vjxc-frw4-jmh5","Warn: Project is vulnerable to: GHSA-w6qf-42m7-vh68","Warn: Project is vulnerable to: GHSA-xpp6-8r3j-ww43","Warn: Project is vulnerable to: GHSA-w69w-jvc7-wjgv","Warn: Project is vulnerable to: GHSA-v6w3-2prq-h95f","Warn: Project is vulnerable to: GHSA-7v6m-28jr-rg84","Warn: Project is vulnerable to: GHSA-m8p2-495h-ccmh","Warn: Project is vulnerable to: GHSA-rmrm-75hp-phr2","Warn: Project is vulnerable to: GHSA-x83m-pf6f-pf9g","Warn: Project is vulnerable to: GHSA-7f88-5hhx-67m2","Warn: Project is vulnerable to: GHSA-4hvc-qwr2-f8rv","Warn: Project is vulnerable to: GHSA-cm59-pr5q-cw85","Warn: Project is vulnerable to: GHSA-rc42-6c7j-7h5r","Warn: Project is vulnerable to: GHSA-xf96-w227-r7c4","Warn: Project is vulnerable to: GHSA-36p3-wjmg-h94x","Warn: Project is vulnerable to: GHSA-hh26-6xwr-ggv7","Warn: Project is vulnerable to: GHSA-4gc7-5j7h-4qph","Warn: Project is vulnerable to: GHSA-4wp7-92pw-q264","Warn: Project is vulnerable to: GHSA-g5mm-vmx4-3rg7","Warn: Project is vulnerable to: GHSA-558x-2xjg-6232","Warn: Project is vulnerable to: GHSA-564r-hj7v-mcr5","Warn: Project is vulnerable to: GHSA-9cmq-m9j5-mvww","Warn: Project is vulnerable to: GHSA-wxqc-pxw9-g2p8","Warn: Project is vulnerable to: GHSA-2rmj-mq67-h97g","Warn: Project is vulnerable to: GHSA-2wrp-6fg6-hmc5","Warn: Project is vulnerable to: GHSA-4wrc-f8pq-fpqp","Warn: Project is vulnerable to: GHSA-ccgv-vj62-xf9h","Warn: Project is vulnerable to: GHSA-hgjh-9rj2-g67j","Warn: Project is vulnerable to: GHSA-8wx2-9q48-vm9r","Warn: Project is vulnerable to: GHSA-g5vr-rgqm-vf78","Warn: Project is vulnerable to: GHSA-3mc7-4q67-w48m","Warn: Project is vulnerable to: GHSA-98wm-3w3q-mw94","Warn: Project is vulnerable to: GHSA-9w3m-gqgf-c4p9","Warn: Project is vulnerable to: GHSA-c4r9-r8fh-9vj2","Warn: Project is vulnerable to: GHSA-hhhw-99gj-p3c3","Warn: Project is vulnerable to: GHSA-mjmj-j48q-9wg2","Warn: Project is vulnerable to: GHSA-rvwf-54qp-4r6v","Warn: Project is vulnerable to: GHSA-w37g-rhq8-7m4j"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-21T20:34:16.576Z","repository_id":37159379,"created_at":"2025-08-21T20:34:16.576Z","updated_at":"2025-08-21T20:34:16.576Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28408711,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T01:52:23.358Z","status":"online","status_checked_at":"2026-01-14T02:00:06.678Z","response_time":107,"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":["redisson","reids","spring-boot","spring-boot-starter-redisson","spring-cloud","spring-data-redis","springboot2"],"created_at":"2026-01-14T02:16:32.966Z","updated_at":"2026-01-14T02:16:33.505Z","avatar_url":"https://github.com/naah69.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# spring-boot-starter-redisson\n[![](https://img.shields.io/badge/Java-v1.8-green)](https://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html)\n[![](https://img.shields.io/maven-central/v/com.naah69/spring-boot-starter-redisson)](https://search.maven.org/artifact/com.naah69/spring-boot-starter-redisson/1.0.0/jar)\n[![](https://img.shields.io/github/license/naah69/spring-boot-starter-redisson)](https://www.apache.org/licenses/LICENSE-2.0.html)\n[![](https://img.shields.io/github/release/naah69/spring-boot-starter-redisson)](https://github.com/naah69/spring-boot-starter-redisson/releases)\n\n[\\[中文\\]](https://github.com/naah69/spring-boot-starter-redisson/blob/master/README.md) [\\[English\\]](https://github.com/naah69/spring-boot-starter-redisson/blob/master/README.en.md)\n\n## 1 Introduce\n`RedisTemplate` and `StringRedisTemplate` cooperate with `Redisson`,use it easily,provide the more friendly and perfect API for you!\n\nThe biggest advantage is the omission of the `redisson.yaml` config file\n\nThis project is devolped based on [xsxgit/redis-spring-boot-starter](https://gitee.com/xsxgit/redis-spring-boot-starter)（Standing on the shoulders of giants）\n\n## 2 Dependencies\n[![](https://img.shields.io/badge/spring--boot--starter--parent-v2.1.5.RELEASE-blue)](https://github.com/spring-projects/spring-boot/blob/v2.1.5.RELEASE/spring-boot-project/spring-boot-parent/pom.xml)\n\n[![](https://img.shields.io/badge/spring--boot--starter--data--redis-v2.1.5.RELEASE-blue)](https://github.com/spring-projects/spring-boot/blob/v2.1.5.RELEASE/spring-boot-project/spring-boot-starters/spring-boot-starter-data-redis/pom.xml)\n\n[![](https://img.shields.io/badge/redisson--spring--data--21-v3.11.0-blue)](https://github.com/redisson/redisson/tree/master/redisson-spring-data/redisson-spring-data-21)\n\n## 3 Current Version\n\n[![](https://img.shields.io/maven-central/v/com.naah69/spring-boot-starter-redisson)](https://search.maven.org/artifact/com.naah69/spring-boot-starter-redisson/1.0.0/jar)\n\n```xml\n\u003cdependency\u003e\n    \u003cgroupId\u003ecom.naah69\u003c/groupId\u003e\n    \u003cartifactId\u003espring-boot-starter-redisson\u003c/artifactId\u003e\n    \u003cversion\u003e1.0.0\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\n## 4 Getting Started\n\n### 4.1 Preparation\nThe code of this demo is in  `spring-boot-starter-redisson-demo`\n\n1. Maven Dependency：\n\n```xml\n\u003cdependency\u003e\n    \u003cgroupId\u003ecom.naah69\u003c/groupId\u003e\n    \u003cartifactId\u003espring-boot-starter-redisson\u003c/artifactId\u003e\n    \u003cversion\u003e1.0.0\u003c/version\u003e\n\u003c/dependency\u003e\n```\n2. Redis Configuration：\n\nyml：\n```yaml\nserver:\n  port: 6969\nspring:\n  profiles:\n    active: local\n---\nspring:\n  profiles: local\n  redis:\n    redisson:\n      enable: true\n      singleServerConfig:\n        idleConnectionTimeout: 10000\n        pingTimeout: 1000\n        connectTimeout: 10000\n        timeout: 3000\n        retryAttempts: 3\n        retryInterval: 1500\n        failedSlaveReconnectionInterval: 3000\n        failedSlaveCheckInterval: 3\n        #        password: null\n        subscriptionsPerConnection: 5\n        clientName: \"redisson-demo\"\n        address: \"redis://127.0.0.1:6379\"\n        subscriptionConnectionMinimumIdleSize: 1\n        subscriptionConnectionPoolSize: 50\n        connectionMinimumIdleSize: 32\n        connectionPoolSize: 64\n        database: 0\n      threads: 0\n      nettyThreads: 0\n      codec:\n        class: \"org.redisson.codec.JsonJacksonCodec\"\n      transportMode: \"NIO\"\n---\nspring:\n  profiles: cluster\n  redis:\n    redisson:\n      enable: true\n      clusterServersConfig:\n        idleConnectionTimeout: 10000\n        pingTimeout: 1000\n        connectTimeout: 10000\n        timeout: 3000\n        retryAttempts: 3\n        retryInterval: 1500\n        failedSlaveReconnectionInterval: 3000\n        failedSlaveCheckInterval: 3\n        password: 'password'\n        subscriptionsPerConnection: 5\n        clientName: \"redisson-demo\"\n        loadBalancer:\n          class: \"org.redisson.connection.balancer.RoundRobinLoadBalancer\"\n        slaveSubscriptionConnectionMinimumIdleSize: 1\n        slaveSubscriptionConnectionPoolSize: 50\n        slaveConnectionMinimumIdleSize: 32\n        slaveConnectionPoolSize: 64\n        masterConnectionMinimumIdleSize: 32\n        masterConnectionPoolSize: 64\n        readMode: \"SLAVE\"\n        nodeAddresses:\n        - \"redis://127.0.0.1:7110\"\n        - \"redis://127.0.0.1:7111\"\n        - \"redis://127.0.0.1:7112\"\n        - \"redis://127.0.0.1:7113\"\n        scanInterval: 1000\n      threads: 0\n      nettyThreads: 0\n      codec:\n        class: \"org.redisson.codec.JsonJacksonCodec\"\n      transportMode: \"NIO\"\n```\n\n### 4.2 Started\nThe following order is the order that is recommended\n\n 1. RedisTemplate\n\n```java\n@Autowired\nprivate StringRedisTemplate redisTemplate;\n\n@Test\npublic void test() {\n    //get client\n    ValueOperations\u003cString, String\u003e redisClient = redisTemplate.opsForValue();\n\n    //key\n    String key = \"RedisTemplateTest\";\n\n    //delete\n    redisTemplate.delete(key);\n\n    //value\n    long current = System.currentTimeMillis();\n    String value = current + \"\";\n\n    //set\n    redisClient.set(key, value);\n\n    //verify\n    Assert.assertEquals(redisClient.get(key), value);\n}\n```\n\n2. RedisUtils\n\n```java\n@Test\npublic void test() {\n    //get client\n    StringHandler redisClient = RedisUtil.getStringHandler();\n\n    //key\n    String key = \"RedisUtilsTest\";\n\n    //delete\n    redisClient.remove(key);\n\n    //value\n    long current = System.currentTimeMillis();\n    String value = current + \"\";\n\n    //set\n    redisClient.set(key, value);\n\n    //verify\n    Assert.assertEquals(redisClient.get(key), value);\n}\n```\n\n3. RedissonClient\n\n```java\n@Autowired\nprivate RedissonClient redissonClient;\n\n@Test\npublic void test() {\n    //key\n    String key = \"RedissonClientTest\";\n\n    //get client\n    RBucket\u003cString\u003e redisClient = redissonClient.getBucket(key);\n\n    //delete\n    redisClient.delete();\n\n    //value\n    long current = System.currentTimeMillis();\n    String value = current + \"\";\n\n    //set\n    redisClient.set(value);\n\n    //verify\n    Assert.assertEquals(redisClient.get(), value);\n}\n```\n\n\n\n### 4.3 Custom Compont Named RedisUtils Specification\n\nget database instance：\n```java\n// get default database instance(DB)\nDBHandler dbHandler = RedisUtil.getDBHandler();\n...\n\n// get the database instance that is second index(DB)\nDBHandler dbHandler = RedisUtil.getDBHandler(2);\n...\n```\n\n| Instance | Data Type | Get Way |\n| :------: | :------: | :------: |\n| NumberHandler | Number | RedisUtil.getNumberHandler()\u003cbr\u003eRedisUtil.getNumberHandler(dbIndex) |\n| StringHandler | String | RedisUtil.getStringHandler()\u003cbr\u003eRedisUtil.getStringHandler(dbIndex) |\n| HashHandler | Hash | RedisUtil.getHashHandler()\u003cbr\u003eRedisUtil.getHashHandler(dbIndex) |\n| SetHandler | Set | RedisUtil.getSetHandler()\u003cbr\u003eRedisUtil.getSetHandler(dbIndex) |\n| ZsetHandler | Zset | RedisUtil.getZsetHandler()\u003cbr\u003eRedisUtil.getZsetHandler(dbIndex) |\n| HyperLogLogHandler | HyperLogLog | RedisUtil.getHyperLogLogHandler()\u003cbr\u003eRedisUtil.getHyperLogLogHandler(dbIndex) |\n| BitmapHandler | Bitmap | RedisUtil.getBitmapHandler()\u003cbr\u003eRedisUtil.getBitmapHandler(dbIndex) |\n| GeoHandler | Geo | RedisUtil.getGeoHandler()\u003cbr\u003eRedisUtil.getGeoHandler(dbIndex) |\n| KeyHandler | Key | RedisUtil.getKeyHandler()\u003cbr\u003eRedisUtil.getKeyHandler(dbIndex) |\n| ScriptHandler | Lua Script | RedisUtil.getScriptHandler()\u003cbr\u003eRedisUtil.getScriptHandler(dbIndex) |\n| PubSubHandler | Pubsub | RedisUtil.getPubSubHandler()\u003cbr\u003eRedisUtil.getPubSubHandler(dbIndex) |\n| StreamHandler | Stream | RedisUtil.getStreamHandler()\u003cbr\u003eRedisUtil.getStreamHandler(dbIndex)\u003cbr\u003eRedisUtil.getStreamHandler(dbIndex, mapper) |\n| DBHandler | DB | RedisUtil.getDBHandler()\u003cbr\u003eRedisUtil.getDBHandler(dbIndex) |\n| SentinelHandler | Sentinel | RedisUtil.getSentinelHandler()\u003cbr\u003eRedisUtil.getSentinelHandler(dbIndex) |\n| ClusterHandler | Cluster | RedisUtil.getClusterHandler() |\n| CustomCommandHandler | CustomCommand | RedisUtil.getCustomCommandHandler()\u003cbr\u003eRedisUtil.getCustomCommandHandler(dbIndex) |\n| RedisLockHandler | Lock | RedisUtil.getRedisLockHandler()\u003cbr\u003eRedisUtil.getRedisLockHandler(dbIndex) |\n| TransactionHandler | Transaction | RedisUtil.getTransactionHandler()\u003cbr\u003eRedisUtil.getTransactionHandler(dbIndex) |\n\n### 4.4 Transaction Sample\n```java\nList execute = RedisUtil.getTransactionHandler(2).execute(handler -\u003e {\n    // open monitoring\n    handler.watch(\"xx\", \"test\");\n    // open transaction\n    handler.beginTransaction();\n    // get the string handler\n    StringHandler stringHandler = handler.getStringHandler();\n    // operate\n    stringHandler.set(\"xx\", \"hello\");\n    stringHandler.append(\"xx\", \"world\");\n    stringHandler.append(\"xx\", \"!\");\n    // get the number handler\n    NumberHandler numberHandler = handler.getNumberHandler();\n    numberHandler.addLong(\"test\", 100);\n    numberHandler.incrementLong(\"test\");\n    numberHandler.incrementLong(\"test\");\n    numberHandler.incrementLong(\"test\");\n    // commit\n    return handler.commit();\n});\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnaah69%2Fspring-boot-starter-redisson","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnaah69%2Fspring-boot-starter-redisson","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnaah69%2Fspring-boot-starter-redisson/lists"}