{"id":37128168,"url":"https://github.com/xingyu-long/gobitcask","last_synced_at":"2026-01-14T14:55:21.566Z","repository":{"id":255923279,"uuid":"853518931","full_name":"xingyu-long/gobitcask","owner":"xingyu-long","description":"Go version Bitcask","archived":false,"fork":false,"pushed_at":"2024-09-07T20:54:53.000Z","size":12,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-09-08T21:55:53.959Z","etag":null,"topics":["bitcask","golang","kv-store"],"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/xingyu-long.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":"2024-09-06T20:22:46.000Z","updated_at":"2024-09-07T20:57:45.000Z","dependencies_parsed_at":"2024-09-07T21:51:06.559Z","dependency_job_id":"8602e23b-b663-4ea4-bdbd-ea27bf7f3b3c","html_url":"https://github.com/xingyu-long/gobitcask","commit_stats":null,"previous_names":["xingyu-long/gobitcask"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/xingyu-long/gobitcask","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xingyu-long%2Fgobitcask","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xingyu-long%2Fgobitcask/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xingyu-long%2Fgobitcask/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xingyu-long%2Fgobitcask/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xingyu-long","download_url":"https://codeload.github.com/xingyu-long/gobitcask/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xingyu-long%2Fgobitcask/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28424017,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T13:30:50.153Z","status":"ssl_error","status_checked_at":"2026-01-14T13:29:08.907Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":["bitcask","golang","kv-store"],"created_at":"2026-01-14T14:55:20.673Z","updated_at":"2026-01-14T14:55:21.558Z","avatar_url":"https://github.com/xingyu-long.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gobitcask\n\nThis is an implementation of [Bitcask](https://riak.com/assets/bitcask-intro.pdf) (key/value database) in Golang based on [mini-bitcask](https://github.com/rosedblabs/mini-bitcask/tree/main)\n\n## Usage\n```go\npackage main\n\nimport (\n\t\"bytes\"\n\t\"fmt\"\n\n\t\"github.com/xingyu-long/gobitcask\"\n)\n\nfunc main() {\n\tdb, err := gobitcask.Open(\"/tmp/gobitcask_main\")\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\n\tkey := []byte(\"test_key\")\n\tvalue := []byte(\"test_value\")\n\n\terr = db.Put(key, value)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tfmt.Printf(\"1. Run %s: %s\\n\", \"Put\", fmt.Sprintf(\"put key = %s, value = %s into kv\", string(key), string(value)))\n\n\tret_val, err := db.Get(key)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tif bytes.Equal(ret_val, value) {\n\t\tfmt.Printf(\"2. Run %s: %s\\n\", \"Get\", fmt.Sprintf(\"value = %s\", string(ret_val)))\n\t} else {\n\t\tpanic(fmt.Sprintf(\"Expected value = %s, Actual value = %s\\n\", string(value), string(ret_val)))\n\t}\n\n\terr = db.Delete(key)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tfmt.Printf(\"3. Run %s: %s\\n\", \"Delete\", fmt.Sprintf(\"key = %s\", string(key)))\n\n\tdb.Merge()\n\tfmt.Printf(\"4. Run %s: %s\\n\", \"Merge\", \"merge data and create new DBFile\")\n\n\tdb.Close()\n\tfmt.Printf(\"5. Run %s: %s\\n\", \"Close\", \"close DB\")\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxingyu-long%2Fgobitcask","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxingyu-long%2Fgobitcask","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxingyu-long%2Fgobitcask/lists"}