{"id":17955636,"url":"https://github.com/smallnest/gomemcached","last_synced_at":"2025-03-25T02:30:51.668Z","repository":{"id":144973223,"uuid":"104331207","full_name":"smallnest/gomemcached","owner":"smallnest","description":"memcached protocol implementation  for memcached server","archived":false,"fork":false,"pushed_at":"2020-02-23T13:43:21.000Z","size":10,"stargazers_count":13,"open_issues_count":0,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-19T06:42:43.618Z","etag":null,"topics":["golang","memcached","protocol"],"latest_commit_sha":null,"homepage":null,"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/smallnest.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":"2017-09-21T09:55:49.000Z","updated_at":"2024-11-29T00:46:09.000Z","dependencies_parsed_at":null,"dependency_job_id":"61555f81-c392-4a1e-bf49-3cf29ee5f905","html_url":"https://github.com/smallnest/gomemcached","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/smallnest%2Fgomemcached","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smallnest%2Fgomemcached/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smallnest%2Fgomemcached/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smallnest%2Fgomemcached/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/smallnest","download_url":"https://codeload.github.com/smallnest/gomemcached/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245385298,"owners_count":20606642,"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":["golang","memcached","protocol"],"created_at":"2024-10-29T10:31:29.192Z","updated_at":"2025-03-25T02:30:51.647Z","avatar_url":"https://github.com/smallnest.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gomemcached\nMemcached protocol implementation for memcached server.\nYou can use it to create a memcached server easily.\n\n[![License: MIT](https://img.shields.io/badge/License-MIT-brightgreen.svg)](https://opensource.org/licenses/MIT) [![GoDoc](https://godoc.org/github.com/rpcxio/gomemcached?status.png)](http://godoc.org/github.com/rpcxio/gomemcached)  [![travis](https://travis-ci.org/smallnest/gomemcached.svg?branch=master)](https://travis-ci.org/smallnest/gomemcached) [![Go Report Card](https://goreportcard.com/badge/github.com/rpcxio/gomemcached)](https://goreportcard.com/report/github.com/rpcxio/gomemcached) [![Coverage Status](https://coveralls.io/repos/smallnest/gomemcached/badge.svg?branch=master\u0026service=github)](https://coveralls.io/github/smallnest/gomemcached?branch=master) \n\n\nimport this lib:\n\n```sh\ngo get -u github.com/rpcxio/gomemcached\n```\n\n\nAnd register handlers.\n\n```go\n    addr = \"127.0.0.1:\" + strconv.Itoa(port)\n\tmockServer = NewServer(addr)\n\tmockServer.RegisterFunc(\"get\", DefaultGet)\n\tmockServer.RegisterFunc(\"gets\", DefaultGet)\n\tmockServer.RegisterFunc(\"set\", DefaultSet)\n\tmockServer.RegisterFunc(\"delete\", DefaultDelete)\n\tmockServer.RegisterFunc(\"incr\", DefaultIncr)\n\tmockServer.RegisterFunc(\"flush_all\", DefaultFlushAll)\n\tmockServer.RegisterFunc(\"version\", DefaultVersion)\n\tmockServer.Start()\n```\n\n\nThis project refers to the below projects:\n\n- [luxuan/go-memcached-server](https://github.com/luxuan/go-memcached-server)\n- [zobo/mrproxy](https://github.com/zobo/mrproxy)\n\nI added more implementation and fix some issues, for example, panic on reading long value. I also add `Context` in handlers so that we can pass more info to handlers.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsmallnest%2Fgomemcached","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsmallnest%2Fgomemcached","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsmallnest%2Fgomemcached/lists"}