{"id":13756203,"url":"https://github.com/laohanlinux/bitcask","last_synced_at":"2026-01-17T04:03:36.397Z","repository":{"id":86203071,"uuid":"49307569","full_name":"laohanlinux/bitcask","owner":"laohanlinux","description":"this is backend storage for riot","archived":false,"fork":false,"pushed_at":"2016-04-30T12:44:22.000Z","size":50,"stargazers_count":59,"open_issues_count":0,"forks_count":12,"subscribers_count":6,"default_branch":"master","last_synced_at":"2024-08-04T11:01:50.722Z","etag":null,"topics":[],"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/laohanlinux.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}},"created_at":"2016-01-09T02:30:07.000Z","updated_at":"2023-04-09T22:33:20.000Z","dependencies_parsed_at":"2023-03-13T09:01:22.797Z","dependency_job_id":null,"html_url":"https://github.com/laohanlinux/bitcask","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/laohanlinux%2Fbitcask","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/laohanlinux%2Fbitcask/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/laohanlinux%2Fbitcask/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/laohanlinux%2Fbitcask/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/laohanlinux","download_url":"https://codeload.github.com/laohanlinux/bitcask/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224911420,"owners_count":17390840,"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-08-03T11:00:38.931Z","updated_at":"2026-01-17T04:03:36.382Z","avatar_url":"https://github.com/laohanlinux.png","language":"Go","funding_links":[],"categories":["Go"],"sub_categories":[],"readme":"# bitcask\nthis is storage backend  for riot\n\n[Design Doc](https://github.com/laohanlinux/bitcask/blob/master/doc/doc.md)\n\n[riot](https://github.com/laohanlinux/riot)\n\n\n\n# Example\n\n```\npackage main\n\nimport (\n\t\"github.com/laohanlinux/bitcask\"\n\t\"github.com/laohanlinux/go-logger/logger\"\n)\n\nfunc main() {\n\tbc, err := bitcask.Open(\"exampleBitcaskDir\", nil)\n\tif err != nil {\n\t\tlogger.Fatal(err)\n\t}\n\tdefer bc.Close()\n\tk1 := []byte(\"xiaoMing\")\n\tv1 := []byte(\"毕业于新东方推土机学院\")\n\n\tk2 := []byte(\"zhanSan\")\n\tv2 := []byte(\"毕业于新东方厨师学院\")\n\n\tbc.Put(k1, v1)\n\tbc.Put(k2, v2)\n\n\tv1, _ = bc.Get(k1)\n\tv2, _ = bc.Get(k2)\n\tlogger.Info(string(k1), string(v1))\n\tlogger.Info(string(k2), string(v2))\n\t// time.Sleep(time.Second * 10)\n\t// override\n\tv2 = []byte(\"毕业于新东方美容美发学院\")\n\tbc.Put(k2, v2)\n\tv2, _ = bc.Get(k2)\n\tlogger.Info(string(k2), string(v2))\n\n}\n\n```\n\n`go run example/bitcask_main.go`\n\n```\n2016/01/16 16:56:11 bitcask_main.go:25 [info [xiaoMing 毕业于新东方推土机学院]]\n2016/01/16 16:56:11 bitcask_main.go:26 [info [zhanSan 毕业于新东方厨师学院]]\n2016/01/16 16:56:11 bitcask_main.go:32 [info [zhanSan 毕业于新东方美容美发学院]]\n2016/01/16 16:56:11 bitcask_main.go:36 [info [毕业后的数据库：]]\n2016/01/16 16:56:11 bitcask_main.go:41 [info [xiaoMing 已经毕业.]]\n2016/01/16 16:56:11 bitcask_main.go:47 [info [zhanSan 已经毕业.]]\n```\n\nother Example: find it in `xxxx_test.go`\n\n# TODO\n\n- 优化数据结构，减少内存占用\n- 增加merge功能\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flaohanlinux%2Fbitcask","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flaohanlinux%2Fbitcask","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flaohanlinux%2Fbitcask/lists"}