{"id":21391945,"url":"https://github.com/mozhiingithub/go-mysql-redis-demo","last_synced_at":"2026-05-04T20:32:29.728Z","repository":{"id":220255162,"uuid":"253159375","full_name":"mozhiingithub/go-mysql-redis-demo","owner":"mozhiingithub","description":"基于golang，使用mysql和redis的后端demo","archived":false,"fork":false,"pushed_at":"2020-04-05T05:03:53.000Z","size":5,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-16T13:29:47.879Z","etag":null,"topics":["go","golang","mysql","redis"],"latest_commit_sha":null,"homepage":"","language":"Go","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/mozhiingithub.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":"2020-04-05T05:02:59.000Z","updated_at":"2022-09-25T15:29:51.000Z","dependencies_parsed_at":null,"dependency_job_id":"a2311c71-9778-4387-be95-0e88eec0156b","html_url":"https://github.com/mozhiingithub/go-mysql-redis-demo","commit_stats":null,"previous_names":["mozhiingithub/go-mysql-redis-demo"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mozhiingithub/go-mysql-redis-demo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mozhiingithub%2Fgo-mysql-redis-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mozhiingithub%2Fgo-mysql-redis-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mozhiingithub%2Fgo-mysql-redis-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mozhiingithub%2Fgo-mysql-redis-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mozhiingithub","download_url":"https://codeload.github.com/mozhiingithub/go-mysql-redis-demo/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mozhiingithub%2Fgo-mysql-redis-demo/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267073201,"owners_count":24031543,"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-07-25T02:00:09.625Z","response_time":70,"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":["go","golang","mysql","redis"],"created_at":"2024-11-22T13:38:28.199Z","updated_at":"2026-05-04T20:32:29.715Z","avatar_url":"https://github.com/mozhiingithub.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# go-mysql-redis-demo\n本项目是以golang为后端语言，对mysql及redis进行增删改查的demo。项目内容为一个简易的文本展示系统，包括基于golang的后端、基于mysql对文本实际地址的储存、基于redis对高频访问文本的缓存。\n\n基于golang的后端包含两个模块：server和editor。其中，server负责监听及处理请求，并作出响应;editor负责对整个系统的名录进行增删改工作。\n\n本项目的存储体系为：redis缓存+mysql存储地址+硬盘存储实际资源文件，即，mysql数据库并不直接储存资源内容。后端收到资源请求时，会先判断redis中是否有缓存，有则直接返回缓存内容，没有则会对mysql数据库进行查询，获取资源文件的实际地址，读取内容，返回响应的同时，将内容写入redis缓存。","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmozhiingithub%2Fgo-mysql-redis-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmozhiingithub%2Fgo-mysql-redis-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmozhiingithub%2Fgo-mysql-redis-demo/lists"}