{"id":22900181,"url":"https://github.com/srchen1987/dawdler-springboot-session","last_synced_at":"2025-05-08T01:11:44.410Z","repository":{"id":108179035,"uuid":"371564226","full_name":"srchen1987/dawdler-springboot-session","owner":"srchen1987","description":"超高性能分布式session的实现,地表最快 完全替代 spring-redis-session的一个session管理器","archived":false,"fork":false,"pushed_at":"2024-12-30T05:37:23.000Z","size":164,"stargazers_count":7,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-08T01:11:39.286Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/srchen1987.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2021-05-28T03:03:18.000Z","updated_at":"2023-05-12T17:23:41.000Z","dependencies_parsed_at":null,"dependency_job_id":"94593b61-0bf7-440d-8242-8e429eb932e7","html_url":"https://github.com/srchen1987/dawdler-springboot-session","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/srchen1987%2Fdawdler-springboot-session","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/srchen1987%2Fdawdler-springboot-session/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/srchen1987%2Fdawdler-springboot-session/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/srchen1987%2Fdawdler-springboot-session/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/srchen1987","download_url":"https://codeload.github.com/srchen1987/dawdler-springboot-session/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252978779,"owners_count":21834917,"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":[],"created_at":"2024-12-14T01:18:18.084Z","updated_at":"2025-05-08T01:11:44.388Z","avatar_url":"https://github.com/srchen1987.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# dawdler-springboot-session\n\n超高性能分布式session的实现,地表最快🚀🚀🚀 完全替代 spring-redis-session\ndawdler-springboot-session基于 [dawdler-client-plug-session](https://github.com/srchen1987/dawdler-series/tree/master/dawdler/dawdler-client-plug-session) 改造成 springboot版本\n\n## 快速入门\n\n在springboot的启动类中 加入扫描com.anywide.dawdler.clientplug.web.session包 demo如下：\n\n  ```java\n  @EnableDiscoveryClient\n  @SpringBootApplication\n  public class GatewayServiceApplication {\n  public static void main(String[] args) {\n         SpringApplication.run(GatewayServiceApplication.class, args);\n      }\n  }\n  ```\n\n## 配置文件 identityConfig.properties\n\n```properties\ncookieName=_dawdler_key #cookie中存放名称\ndomain= #域,默认为空 为客户端请求过来的域名\npath=/ #cookie的path\nsecure=false #是否为https\nmaxInactiveInterval=1800 #过期时间 单位为秒数 默认30分钟\nmaxSize=65525 #jvm堆中最大的个数\nuseToken=true #是否允许使用token  如果为是 支持uri后面传入token参数 或 http head头中传入token参数\n```\n\n以上配置文件优先读取项目中的配置文件，读取不到会读取jar包中的.\n\n## 配置文件 application.yml或application.xml(支持统一配置中心)\n\n```properties\n#######################\nmasterName=masterName #哨兵模式下的masterName (注意：哨兵与单机只能用一种,用单机就不能配置此项)\nsentinels=192.168.0.2:26379,192.168.0.3:26379,192.168.0.4:26379 #哨兵列表(注意：哨兵与单机只能用一种,用单机就不能配置此项)\n#######################\naddr=127.0.0.1 #单机ip\nport=6379 #单机端口\n######################\nuserName=userName #redis账号\nauth=password #密码\nmax_active=20 #最大连接数\nmax_idle=8 #最大空闲数\nmax_wait=10000 #最大等待时长(单位毫秒)\ntimeout=10000 #超时时间(单位毫秒)\ntest_on_borrow=false #获取连接时是否验证连接有效\ndatabase=0 #使用指定数据槽\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsrchen1987%2Fdawdler-springboot-session","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsrchen1987%2Fdawdler-springboot-session","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsrchen1987%2Fdawdler-springboot-session/lists"}