{"id":13411767,"url":"https://github.com/codingsince1985/couchcache","last_synced_at":"2025-08-19T02:33:09.435Z","repository":{"id":29888044,"uuid":"33433485","full_name":"codingsince1985/couchcache","owner":"codingsince1985","description":"A RESTful caching micro-service in Go backed by Couchbase","archived":false,"fork":false,"pushed_at":"2024-06-16T05:46:57.000Z","size":34,"stargazers_count":63,"open_issues_count":1,"forks_count":7,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-07-31T20:48:45.950Z","etag":null,"topics":["caching","couchbase","go","golang","nosql"],"latest_commit_sha":null,"homepage":"","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/codingsince1985.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}},"created_at":"2015-04-05T07:13:05.000Z","updated_at":"2024-07-09T09:49:00.000Z","dependencies_parsed_at":"2024-10-26T07:58:19.823Z","dependency_job_id":"595821a2-6738-4079-84b4-106e7b8b47d8","html_url":"https://github.com/codingsince1985/couchcache","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codingsince1985%2Fcouchcache","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codingsince1985%2Fcouchcache/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codingsince1985%2Fcouchcache/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codingsince1985%2Fcouchcache/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codingsince1985","download_url":"https://codeload.github.com/codingsince1985/couchcache/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230310245,"owners_count":18206470,"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":["caching","couchbase","go","golang","nosql"],"created_at":"2024-07-30T20:01:16.713Z","updated_at":"2024-12-18T17:12:09.467Z","avatar_url":"https://github.com/codingsince1985.png","language":"Go","readme":"Couchcache\n==\n[![PkgGoDev](https://pkg.go.dev/badge/github.com/codingsince1985/couchcache)](https://pkg.go.dev/github.com/codingsince1985/couchcache)\n[![Go Report Card](https://goreportcard.com/badge/codingsince1985/couchcache)](https://goreportcard.com/report/codingsince1985/couchcache)\n\nA caching service developed in Go. It provides REST APIs to access key-value pairs stored in Couchbase.\n\nYou may also consider [using couchcache as a mocked service](http://codingsince1985.blogspot.com.au/2015/05/use-caching-service-as-mocked.html) when doing TDD.\n\nTo start couchcache\n--\nRun couchcache with Couchbase server (host and port) and bucket (name and password) information\n\n`./couchcache --host=HOST --port=PORT --bucket=BUCKET --pass=PASS`\n#### Example\n`./couchcache --host=10.99.107.192 --port=8091 --bucket=cachebucket --pass=c@che1t`\n#### Default values\n```\nhost: localhost\nport: 8091\nbucket: couchcache\npass: password\n```\nCache service endpoint\n--\n`http://HOST:8080/key/KEY`\n#### Examples\n`http://10.99.107.190:8080/key/customer_555`\n\n`http://10.99.107.190:8080/key/the_service_i_want_to_mock-endpoint_a`, if you're mocking other service's endpoint\n\n### To store a key-value pair\n* request\n  * send `POST` request to endpoint with data in body\n  * optionally set TTL by `?ttl=TTL_IN_SEC`\n* response\n  * `HTTP 201 Created` if stored\n  * `HTTP 400 Bad Request` if key or value is invalid\n\n### To retrieve a key\n* request\n  * send `GET` request to endpoint\n* response\n  * `HTTP 200 OK` with data in body\n  * `HTTP 404 Not Found` if key doesn't exist\n  * `HTTP 400 Bad Request` if key is invalid\n\n### To delete a key\n* request\n  * send `DELETE` request to endpoint\n* response\n  * `HTTP 204 No Content` if deleted\n  * `HTTP 404 Not Found` is key doesn't exist\n  * `HTTP 400 Bad Request` if key is invalid\n\n### To append data for a key\n* request\n  * send `PUT` request to endpoint with data in body\n* response\n  * `HTTP 200 OK` if appended\n  * `HTTP 404 Not Found` if key doesn't exist\n  * `HTTP 400 Bad Request` if key or value is invalid\n\nLimitations\n--\n* Max key length is 250 bytes\n* Max value size is 20 MB\n\nSee [Couchbase Limits](https://docs.couchbase.com/server/current/learn/clusters-and-availability/size-limitations.html).\n\nLicense\n==\ncouchcache is distributed under the terms of the MIT license. See LICENSE for details.\n","funding_links":[],"categories":["Database","Uncategorized","数据库","\u003cspan id=\"数据库-database\"\u003e数据库 Database\u003c/span\u003e","Generators","Data Integration Frameworks","数据库  `go语言实现的数据库`","數據庫"],"sub_categories":["Caches","Advanced Console UIs","缓存","\u003cspan id=\"高级控制台用户界面-advanced-console-uis\"\u003e高级控制台用户界面 Advanced Console UIs\u003c/span\u003e","标准 CLI","高級控制台界面","高级控制台界面"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodingsince1985%2Fcouchcache","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodingsince1985%2Fcouchcache","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodingsince1985%2Fcouchcache/lists"}