{"id":13723796,"url":"https://github.com/tidwall/doppio","last_synced_at":"2025-10-10T16:34:39.139Z","repository":{"id":57502019,"uuid":"211204138","full_name":"tidwall/doppio","owner":"tidwall","description":"Doppio is a fast LRU cache on top of Ristretto, Redcon, and Evio. Support for the Redis protocol.","archived":false,"fork":false,"pushed_at":"2019-09-27T18:09:41.000Z","size":20,"stargazers_count":116,"open_issues_count":1,"forks_count":5,"subscribers_count":11,"default_branch":"master","last_synced_at":"2025-04-27T20:38:19.494Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tidwall.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":"2019-09-27T00:30:15.000Z","updated_at":"2025-04-26T20:42:38.000Z","dependencies_parsed_at":"2022-09-13T06:50:48.945Z","dependency_job_id":null,"html_url":"https://github.com/tidwall/doppio","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tidwall/doppio","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tidwall%2Fdoppio","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tidwall%2Fdoppio/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tidwall%2Fdoppio/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tidwall%2Fdoppio/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tidwall","download_url":"https://codeload.github.com/tidwall/doppio/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tidwall%2Fdoppio/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279004695,"owners_count":26083750,"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","status":"online","status_checked_at":"2025-10-10T02:00:06.843Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-08-03T01:01:45.764Z","updated_at":"2025-10-10T16:34:39.121Z","avatar_url":"https://github.com/tidwall.png","language":"Go","funding_links":[],"categories":["Go"],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n\u003cimg \n    src=\"logo.png\" \n    width=\"242\" height=\"200\" border=\"0\" alt=\"Doppio\"\u003e\n\u003c/p\u003e\n\nDoppio is a fast experimental LRU cache server on top of [ristretto](https://github.com/dgraph-io/ristretto), [redcon](https://github.com/tidwall/redcon), and [evio](https://github.com/tidwall/evio). With support for the Redis protocol.\n\n## Features\n\n- Multithreaded read and write operations.\n- Simplified Redis protocol support. Most Redis clients will be able to use Doppio.\n- Auto eviction of older items when the server is at optional cache capacity.\n- Optional `--single-threaded` flag for single-threaded, event-loop networking mode.\n\n## Getting Started\n\n### Building\n\nTo start using Doppio, install Go and run `go get`:\n\n```\n$ go get -u github.com/tidwall/doppio\n```\n\nThis will build the application.\n\n\n### Running\n\nStart the server by running the `doppio` application:\n\n```\n$ ./doppio\n\n6307:M 26 Sep 17:10:50.304 * Server started on port 6380 (darwin/amd64, 12 threads, 1.0 GB capacity)\n```\n\n### Command line interface\n\nUse the `redis-cli` application provided by the [Redis](https://github.com/antirez/redis) project.\n\n```\n$ redis-cli -p 6380\n\u003e SET hello world\nOK\n\n\u003e GET hello\n\"world\"\n\n\u003e DEL hello\n(integer) 1\n\n\u003e GET hello\n(nil)\n```\n\n### Options\n\nChoose LRU capacity using the `-c` flag.\n\n```sh\n$ ./doppio -c 1gb      # max capactiy of 1 GB\n$ ./doppio -c 16gb     # max capactiy of 16 GB\n$ ./doppio -c 500mb    # max capactiy of 500 MB\n```\n\nRun in single-threaded mode using the `--single-threaded` flag.\n\n```sh\n$ ./doppio --single-threaded\n```\n\n## Performance\n\nUsing the `redis-benchmark` tool provided by the [Redis](https://github.com/antirez/redis) project we `SET` 10,000,000 random keys and then follow it up with 10,000,000 `GET` operations.\n\nRunning on a big 48 thread r5.12xlarge server at AWS.\n\n### Doppio\n\n```\n$ redis-benchmark -p 6380 -q -t SET,GET -P 1024 -r 1000000000 -n 10000000\nSET: 7886435.50 requests per second\nGET: 10482180.00 requests per second\n```\n\n### Redis\n\n```\n$ redis-benchmark -p 6379 -q -t SET,GET -P 1024 -r 1000000000 -n 10000000\nSET: 1171646.31 requests per second\nGET: 1762114.50 requests per second\n```\n\n\n### Single-threaded mode\n\nUsing the `--single-threaded` flag or `GOMAXPROCS=1`.\n\n```\n$ redis-benchmark -p 6380 -q -t SET,GET -P 1024 -r 1000000000 -n 10000000\nSET: 1721763.00 requests per second\nGET: 1942124.62 requests per second\n```\n\n## Contact\n\nJosh Baker [@tidwall](http://twitter.com/tidwall)\n\n## License\nDoppio source code is available under the MIT [License](/LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftidwall%2Fdoppio","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftidwall%2Fdoppio","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftidwall%2Fdoppio/lists"}