{"id":41815728,"url":"https://github.com/issue9/cache","last_synced_at":"2026-01-25T07:16:19.425Z","repository":{"id":57548116,"uuid":"83206764","full_name":"issue9/cache","owner":"issue9","description":"通用的缓存接口","archived":false,"fork":false,"pushed_at":"2025-12-04T04:40:51.000Z","size":148,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-07T10:52:36.463Z","etag":null,"topics":["cache","memcached"],"latest_commit_sha":null,"homepage":"https://pkg.go.dev/github.com/issue9/cache","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/issue9.png","metadata":{"files":{"readme":"README.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2017-02-26T12:28:15.000Z","updated_at":"2025-12-04T04:39:50.000Z","dependencies_parsed_at":"2023-12-21T10:31:07.237Z","dependency_job_id":"d49226d8-ea5f-4f90-ba03-6b7ab1cb6b32","html_url":"https://github.com/issue9/cache","commit_stats":null,"previous_names":[],"tags_count":36,"template":false,"template_full_name":null,"purl":"pkg:github/issue9/cache","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/issue9%2Fcache","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/issue9%2Fcache/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/issue9%2Fcache/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/issue9%2Fcache/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/issue9","download_url":"https://codeload.github.com/issue9/cache/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/issue9%2Fcache/sbom","scorecard":{"id":496218,"data":{"date":"2025-08-11","repo":{"name":"github.com/issue9/cache","commit":"70534f1ddf634745abab841d5ac30bf4ff1caee6"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.9,"checks":[{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","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":"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":"Code-Review","score":0,"reason":"Found 0/28 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":"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":"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":"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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/codeql-analysis.yml:1","Warn: no topLevel permission defined: .github/workflows/memcache.yml:1","Warn: no topLevel permission defined: .github/workflows/memory.yml:1","Warn: no topLevel permission defined: .github/workflows/redis.yml:1","Info: no jobLevel write permissions found"],"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":"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":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:33: update your workflow using https://app.stepsecurity.io/secureworkflow/issue9/cache/codeql-analysis.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:41: update your workflow using https://app.stepsecurity.io/secureworkflow/issue9/cache/codeql-analysis.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:52: update your workflow using https://app.stepsecurity.io/secureworkflow/issue9/cache/codeql-analysis.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:66: update your workflow using https://app.stepsecurity.io/secureworkflow/issue9/cache/codeql-analysis.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/memcache.yml:21: update your workflow using https://app.stepsecurity.io/secureworkflow/issue9/cache/memcache.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/memcache.yml:27: update your workflow using https://app.stepsecurity.io/secureworkflow/issue9/cache/memcache.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/memcache.yml:36: update your workflow using https://app.stepsecurity.io/secureworkflow/issue9/cache/memcache.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/memory.yml:15: update your workflow using https://app.stepsecurity.io/secureworkflow/issue9/cache/memory.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/memory.yml:21: update your workflow using https://app.stepsecurity.io/secureworkflow/issue9/cache/memory.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/memory.yml:30: update your workflow using https://app.stepsecurity.io/secureworkflow/issue9/cache/memory.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/redis.yml:26: update your workflow using https://app.stepsecurity.io/secureworkflow/issue9/cache/redis.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/redis.yml:32: update your workflow using https://app.stepsecurity.io/secureworkflow/issue9/cache/redis.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/redis.yml:41: update your workflow using https://app.stepsecurity.io/secureworkflow/issue9/cache/redis.yml/master?enable=pin","Info:   0 out of  10 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   3 third-party GitHubAction dependencies pinned"],"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":"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: MIT License: 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":-1,"reason":"no releases found","details":null,"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":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"SAST","score":7,"reason":"SAST tool detected but not run on all commits","details":["Info: SAST configuration detected: CodeQL","Warn: 0 commits out of 2 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-19T20:28:41.065Z","repository_id":57548116,"created_at":"2025-08-19T20:28:41.065Z","updated_at":"2025-08-19T20:28:41.065Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28747310,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-25T05:12:38.112Z","status":"ssl_error","status_checked_at":"2026-01-25T05:04:50.338Z","response_time":113,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["cache","memcached"],"created_at":"2026-01-25T07:16:18.699Z","updated_at":"2026-01-25T07:16:19.419Z","avatar_url":"https://github.com/issue9.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cache\n\n[![codecov](https://codecov.io/gh/issue9/cache/branch/master/graph/badge.svg)](https://codecov.io/gh/issue9/cache)\n[![PkgGoDev](https://pkg.go.dev/badge/github.com/issue9/cache)](https://pkg.go.dev/github.com/issue9/cache)\n![Go version](https://img.shields.io/github/go-mod/go-version/issue9/cache)\n![License](https://img.shields.io/github/license/issue9/cache)\n\n通用的缓存接口\n\n目前支持以下组件：\n\n名称       | 包                                   | 状态\n-----------|--------------------------------------|-----\nmemory     | 内存                                 | [![memory](https://github.com/issue9/cache/workflows/memory/badge.svg)](https://github.com/issue9/cache/actions?query=workflow%3Amemory)\nmemcached  | \u003cgithub.com/bradfitz/gomemcache\u003e     | [![memcache](https://github.com/issue9/cache/workflows/memcached/badge.svg)](https://github.com/issue9/cache/actions?query=workflow%3Amemcached)\nredis      | \u003cgithub.com/redis/go-redis\u003e          | [![memcache](https://github.com/issue9/cache/workflows/redis/badge.svg)](https://github.com/issue9/cache/actions?query=workflow%3Aredis)\n\n```go\n// memory\nc, _ := memory.New(...)\nc.Set(\"number\", 1)\nvar v int\nc.Get(\"number\",\u0026v)\nprint(v)\n\n// memcached\nc = memcache.New(\"localhost:11211\")\nc.Set(\"number\", 1)\nc.Get(\"number\", \u0026v)\nprint(v)\n\nn, setN, exists, err := c.Counter(\"n\")\nsetN(-1) // 为 n 减 1\nsetN(10) // 为 n 加上 10\n```\n\n## 安装\n\n```shell\ngo get github.com/issue9/cache\n```\n\n## 版权\n\n本项目采用 [MIT](https://opensource.org/licenses/MIT) 开源授权许可证，完整的授权说明可在 [LICENSE](LICENSE) 文件中找到。\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fissue9%2Fcache","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fissue9%2Fcache","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fissue9%2Fcache/lists"}