{"id":41632106,"url":"https://github.com/jacoblai/yiyidb","last_synced_at":"2026-01-24T14:37:05.266Z","repository":{"id":92791464,"uuid":"88108237","full_name":"jacoblai/yiyidb","owner":"jacoblai","description":"YIYIDB 高性能no-sql数据库","archived":false,"fork":false,"pushed_at":"2021-06-22T06:26:22.000Z","size":199,"stargazers_count":10,"open_issues_count":0,"forks_count":4,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-06-19T17:50:32.031Z","etag":null,"topics":["golang","kvdb","nosql","queue","yiyidb"],"latest_commit_sha":null,"homepage":"http://coolpy.net","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/jacoblai.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":"2017-04-13T00:26:27.000Z","updated_at":"2024-04-27T15:18:55.000Z","dependencies_parsed_at":"2023-03-27T12:04:35.323Z","dependency_job_id":null,"html_url":"https://github.com/jacoblai/yiyidb","commit_stats":null,"previous_names":[],"tags_count":36,"template":false,"template_full_name":null,"purl":"pkg:github/jacoblai/yiyidb","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jacoblai%2Fyiyidb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jacoblai%2Fyiyidb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jacoblai%2Fyiyidb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jacoblai%2Fyiyidb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jacoblai","download_url":"https://codeload.github.com/jacoblai/yiyidb/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jacoblai%2Fyiyidb/sbom","scorecard":{"id":501331,"data":{"date":"2025-08-11","repo":{"name":"github.com/jacoblai/yiyidb","commit":"b378ddb733d7512120865dd794b4840a1486be31"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.6,"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":"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/30 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":"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":"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":"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":"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":"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":"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":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"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"}}]},"last_synced_at":"2025-08-19T21:56:51.677Z","repository_id":92791464,"created_at":"2025-08-19T21:56:51.677Z","updated_at":"2025-08-19T21:56:51.677Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28729869,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-24T10:24:43.181Z","status":"ssl_error","status_checked_at":"2026-01-24T10:24:36.112Z","response_time":89,"last_error":"SSL_read: 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":["golang","kvdb","nosql","queue","yiyidb"],"created_at":"2026-01-24T14:37:04.612Z","updated_at":"2026-01-24T14:37:05.239Z","avatar_url":"https://github.com/jacoblai.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# YIYIDB 高性能no-sql数据库\n\n[![Author](https://img.shields.io/badge/author-@jacoblai-blue.svg?style=flat)](http://www.icoolpy.com/) [![Platform](https://img.shields.io/badge/platform-Linux,%20OpenWrt,%20Android,%20Mac,%20Windows-green.svg?style=flat)](https://github.com/jacoblai/dhdb) [![NoSQL](https://img.shields.io/badge/db-NoSQL-pink.svg?tyle=flat)](https://github.com/jacoblai/dhdb)\n\n## 功能支持\n\n* 纯Go编写\n* 10亿级数据量支持\n* 集成先进先出数据队列\n* 支持KV集合 (Z-LIST有序集合，主键不允许重复)\n* 支持 TTL 超时自动删除及通知事件\n* 支持嵌入式设备OPENWRT等系统 (ARM/MIPS)\n\n## 使用说明\n\n* 中文手册参阅[项目WIKI!](https://github.com/jacoblai/yiyidb/wiki)\n* 更多示例代码参阅项目 *_test.go 文件\n\n## 快速上手\n```\nimport \"github.com/jacoblai/yiyidb\"\n```\n## 重打开或创建一个数据库\n```\n//取到当前程序所在物理位置\ndir, err := filepath.Abs(filepath.Dir(os.Args[0]))\nif err != nil {\n\tpanic(err)\n}\n//创建或重打开数据库\n//参数1 数据库路径,\n//参数2 是否开启同库数据分组(chan库开启标识) \n//参数3 是否开启ttl自动删除记录,当开启ttl后put操作的ttl才会生效\n//参数4 数据碰测优化，输入可能出现key的最大长度\nkv, err := yiyidb.OpenKvdb(dir+\"/yiyidb\", false, false, 10)\nif err != nil {\n\tpanic(err)\n}\ndefer kv.Close()\n```\n## 注册当TTL超时删除事件通知\n```\nkv.OnExpirse = func(key, value []byte) {\n   fmt.Println(\"exp:\", string(key), string(value))\n}\n```\n\n## 插入一条记录，(当重复Put同key时操作等同于更新内容操作)\n```\nkv.Put([]byte(\"hello1\"), []byte(\"hello value\"), 0)//key值，value值， 0为永不超时\n```\n## 设置一条已存在记录并8秒后超时自动删除\n```\nkv.SetTTL([]byte(\"hello1\"), 8)\n```\n\n## 删除一条记录\n```\nkv.Del([]byte(\"hello1\"))\n```\n\n## 性能 \n## 插入队列压力测试\n300,000\t      5865ns/op\t     516B/op\t       9allocs/op\n## 取出队列压力测试\n200,000\t     14379ns/op\t    1119B/op\t      20allocs/op\n\n## 作者\n@jacoblai\n\n## 感谢\n\n* syndtr, github.com/syndtr/goleveldb\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjacoblai%2Fyiyidb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjacoblai%2Fyiyidb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjacoblai%2Fyiyidb/lists"}