{"id":21037259,"url":"https://github.com/kadnan/gocache","last_synced_at":"2025-05-15T14:32:30.858Z","repository":{"id":137509335,"uuid":"250792195","full_name":"kadnan/GoCache","owner":"kadnan","description":"A simplest Cache Server based on LRU implementation written in Go","archived":false,"fork":false,"pushed_at":"2020-03-29T13:26:14.000Z","size":14,"stargazers_count":15,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2023-03-11T02:34:16.675Z","etag":null,"topics":["cache","go","golang","lru-cache"],"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/kadnan.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":"2020-03-28T12:43:01.000Z","updated_at":"2024-06-19T11:09:40.905Z","dependencies_parsed_at":null,"dependency_job_id":"03e69e16-205c-4353-9f82-7184d5b8a9b9","html_url":"https://github.com/kadnan/GoCache","commit_stats":null,"previous_names":[],"tags_count":0,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kadnan%2FGoCache","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kadnan%2FGoCache/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kadnan%2FGoCache/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kadnan%2FGoCache/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kadnan","download_url":"https://codeload.github.com/kadnan/GoCache/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254358954,"owners_count":22058021,"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":["cache","go","golang","lru-cache"],"created_at":"2024-11-19T13:25:08.973Z","updated_at":"2025-05-15T14:32:30.470Z","avatar_url":"https://github.com/kadnan.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Go Cache Server\n\n`GoCache` is a simple Cache Server based on [LRU](https://en.wikipedia.org/wiki/Cache_replacement_policies#Least_recently_used_(LRU)) algorithm which is also used on **MemCache**.\n\n### Setup and Run\n- Clone this repo: `https://github.com/kadnan/GoCache.git`\n- `go run gocached.go lru.go` - By Default it runs on port `9000` with the capacity `5`.\n- You can also specify port while running: `go run gocached.go lru.go -port=9002 -capacity=20`\n\n### Commands\n- get [keyname] to retrieve a key. If not available it gives a message. For example `get name`.\n- set [keyname] [value] to set a key. It returns `1`. For example `set name adnan`.\n\n## Etcetera\n\n- This is my first ever Go program and also first ever implementation of LRU Cache Algorithm so do mention mistake where found or come up witha  PR request.\n\n- There is also a sample go client available in the file `client.go`.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkadnan%2Fgocache","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkadnan%2Fgocache","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkadnan%2Fgocache/lists"}