{"id":22170550,"url":"https://github.com/diegohce/dcached","last_synced_at":"2025-03-24T17:40:32.250Z","repository":{"id":139431947,"uuid":"150462993","full_name":"diegohce/dcached","owner":"diegohce","description":"Masterless distributed cluster cache system","archived":false,"fork":false,"pushed_at":"2019-04-12T20:45:36.000Z","size":4870,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-29T22:25:02.007Z","etag":null,"topics":["cache","cache-cluster","cache-node","cluster","cluster-cache","distributed","distributed-cache","go","golang","masterless","memcache","nodes","parallel"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/diegohce.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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":"2018-09-26T17:18:13.000Z","updated_at":"2025-01-22T14:54:21.000Z","dependencies_parsed_at":"2023-05-12T18:30:28.724Z","dependency_job_id":null,"html_url":"https://github.com/diegohce/dcached","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diegohce%2Fdcached","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diegohce%2Fdcached/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diegohce%2Fdcached/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diegohce%2Fdcached/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/diegohce","download_url":"https://codeload.github.com/diegohce/dcached/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245319763,"owners_count":20596032,"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","cache-cluster","cache-node","cluster","cluster-cache","distributed","distributed-cache","go","golang","masterless","memcache","nodes","parallel"],"created_at":"2024-12-02T06:52:15.230Z","updated_at":"2025-03-24T17:40:32.228Z","avatar_url":"https://github.com/diegohce.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Go Report Card](https://goreportcard.com/badge/github.com/diegohce/dcached)](https://goreportcard.com/report/github.com/diegohce/dcached)\n[![GitHub release](https://img.shields.io/github/release/diegohce/dcached.svg)](https://github.com/diegohce/dcached/releases/)\n[![Github all releases](https://img.shields.io/github/downloads/diegohce/dcached/total.svg)](https://github.com/diegohce/dcached/releases/)\n[![GPLv3 license](https://img.shields.io/badge/License-GPLv3-blue.svg)](https://github.com/diegohce/dcached/blob/master/LICENSE)\n[![Maintenance](https://img.shields.io/badge/Maintained%3F-yes-green.svg)](https://github.com/diegohce/dcached/graphs/commit-activity)\n[![HitCount](http://hits.dwyl.io/diegohce/dcached.svg)](http://hits.dwyl.io/diegohce/dcached)\n[![Generic badge](https://img.shields.io/badge/deb%20package-yes-green.svg)](https://github.com/diegohce/dcached/releases/)\n\ndcached(1)\n\n# NAME\n\n*dcached* - Distributed and masterless cache cluster.\n\n# SYNOPSIS\n\n*dcached* \n\n# DESCRIPTION\n\n*dcached* can run as a standalone node or as a cluster of nodes. \nConfig file at /etc/dcached.conf defines *dcached* behaviour.\n\n\n# CONFIG FILE\n\n```\ncache:\n  ip: \"\" #leave blank\n  port: \"9009\" #listen port for cache service.\n  gc_freq: 3600 #seconds, cache subsystem garbage collector\n  mode: \"standalone\" # \"cluster\"\n\nsiblings:\n  address: \"224.0.0.1:9999\" #multicast group.\n  beacon_freq: 2 #seconds\n  max_datagram_size: 128 #bytes, hostname MUST fit here.\n  ttl: 5 #seconds, time to expire siblings registrar.\n  beacon_interface: \"\" #Network interface to use to send the multicast beacon\n```\n\n# Cache Operations\n\nDcached differs from others cache systems as it does not use a key-value based\nmodel, it uses a key-key-value model as in application_name-key-value. So several\napplications can use the same dcached cluster without key collision amongst\napplications.\n\n * Set\n * Get\n * Remove\n * Stats\n \n## Set \n\nHTTP POST to /cache/set\n\n```json\n{\n\t\"appname\":\"my-awesome-service\",\n\t\"key\": \"unique-key-for-this-app\",\n\t\"value\": \"some-frequent-value\",\n\t\"ttl\": 120\n}\n```\n## Get \n\nHTTP POST to /cache/get\n\n```json\n{\n\t\"appname\":\"my-awesome-service\",\n\t\"key\": \"unique-key-for-this-app\"\n}\n```\n\n## Remove\n\nRemove Operations\n\n * key\n * application\n * all\n\n### Remove key\n\nHTTP POST to /cache/remove/key\n\n```json\n{\n\t\"appname\":\"my-awesome-service\",\n\t\"key\": \"unique-key-for-this-app\"\n}\n```\n\n### Remove application\n\nHTTP POST to /cache/remove/application\n\n```json\n{\n\t\"appname\":\"my-awesome-service\",\n\t\"key\": \"unique-key-for-this-app\"\n}\n```\n\n### Remove all\n\nHTTP POST to /cache/remove/all\n\n```json\n{\n\t\"appname\":\"all\"\n}\n```\n\n## Stats\n\n * local (requested node)\nHTTP GET to /cache/stats/local\n\n * all   (all cluster nodes)\nHTTP GET to /cache/stats/all\n\n\n# FILES\n\n/etc/dcached.conf\n\n/etc/default/dcached\n\n# AUTHORS\n\nMaintained by Diego Cena \u003cdiego.cena@gmail.com\u003e. Up-to-date sources and binaries\ncan be found at https://github.com/diegohce/dcached and bugs/issues \ncan be submitted there.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdiegohce%2Fdcached","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdiegohce%2Fdcached","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdiegohce%2Fdcached/lists"}