{"id":21121444,"url":"https://github.com/oneofone/dbcl","last_synced_at":"2025-03-14T11:24:08.185Z","repository":{"id":57526499,"uuid":"89632455","full_name":"OneOfOne/dbcl","owner":"OneOfOne","description":null,"archived":false,"fork":false,"pushed_at":"2017-04-27T22:19:53.000Z","size":21,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-21T05:25:02.879Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/OneOfOne.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}},"created_at":"2017-04-27T19:20:43.000Z","updated_at":"2017-04-27T19:21:05.000Z","dependencies_parsed_at":"2022-09-07T05:30:30.791Z","dependency_job_id":null,"html_url":"https://github.com/OneOfOne/dbcl","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/OneOfOne%2Fdbcl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OneOfOne%2Fdbcl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OneOfOne%2Fdbcl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OneOfOne%2Fdbcl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/OneOfOne","download_url":"https://codeload.github.com/OneOfOne/dbcl/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243566416,"owners_count":20311875,"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-11-20T03:50:19.050Z","updated_at":"2025-03-14T11:24:08.158Z","avatar_url":"https://github.com/OneOfOne.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# dbcl [![GoDoc](http://godoc.org/github.com/OneOfOne/dbcl?status.svg)](http://godoc.org/github.com/OneOfOne/dbcl) [![Build Status](https://travis-ci.org/OneOfOne/dbcl.svg?branch=master)](https://travis-ci.org/OneOfOne/dbcl)\n--\n\ndbcl a simple, efficient, typed memory caching layer.\n\n## Install\n\n\tgo get github.com/OneOfOne/dbcl\n\n## Usage\n\n```go\nimport (\n\t\"github.com/OneOfOne/dbcl\"\n\t\"github.com/OneOfOne/backend/boltCL\"\n)\n\nfunc main() {\n\tbe, err := boltCL.New(path, mode, boltOpts)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\tdb, err := dbcl.New(\u0026dbcl.Options{\n\t\tDefaultMarshalFn:   json.Marshal,\n\t\tDefaultUnmarshalFn: json.Unmarshal,\n\t\tBucketMapping: []dbcl.BucketMapping{\n\t\t\t{Name: \"raw\", MarshalFn: dbcl.MarshalRaw, UnmarshalFn: dbcl.UnmarshalRaw},\n\t\t},\n\t}, be)\n\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\tdefer db.Close()\n\n\tdb.Update(func(tx *dbcl.Tx) error {\n\t\ttx.Bucket(\"default\").Set(\"struct\", DataStruct{\"hi\", 100})\n\t\ttx.Bucket(\"raw\").Set(\"string\", \"string\")\n\t\treturn nil\n\t}\n}\n```\n\n## Benchmark\n```bash\n\n```\n\n## License\n\nApache v2.0 (see [LICENSE](https://github.com/OneOfOne/dbcl/blob/master/LICENSE) file).\n\nCopyright 2016-2016 Ahmed \u003c[OneOfOne](https://github.com/OneOfOne/)\u003e W.\n\n\tLicensed under the Apache License, Version 2.0 (the \"License\");\n\tyou may not use this file except in compliance with the License.\n\tYou may obtain a copy of the License at\n\n\t\thttp://www.apache.org/licenses/LICENSE-2.0\n\n\tUnless required by applicable law or agreed to in writing, software\n\tdistributed under the License is distributed on an \"AS IS\" BASIS,\n\tWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n\tSee the License for the specific language governing permissions and\n\tlimitations under the License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foneofone%2Fdbcl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foneofone%2Fdbcl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foneofone%2Fdbcl/lists"}