{"id":18739926,"url":"https://github.com/withlin/redis-canal-rs","last_synced_at":"2025-04-12T20:04:29.011Z","repository":{"id":96511656,"uuid":"234530119","full_name":"withlin/redis-canal-rs","owner":"withlin","description":"a redis canal by rust","archived":false,"fork":false,"pushed_at":"2020-03-07T08:14:09.000Z","size":5207,"stargazers_count":11,"open_issues_count":0,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-12T20:04:06.882Z","etag":null,"topics":["aof","rdb","rdb9","redis","rust"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/withlin.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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-01-17T10:54:55.000Z","updated_at":"2024-06-24T13:53:42.000Z","dependencies_parsed_at":null,"dependency_job_id":"4a554e96-cdc4-4629-bc08-488e95f67a85","html_url":"https://github.com/withlin/redis-canal-rs","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/withlin%2Fredis-canal-rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/withlin%2Fredis-canal-rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/withlin%2Fredis-canal-rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/withlin%2Fredis-canal-rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/withlin","download_url":"https://codeload.github.com/withlin/redis-canal-rs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248625493,"owners_count":21135513,"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":["aof","rdb","rdb9","redis","rust"],"created_at":"2024-11-07T15:37:54.233Z","updated_at":"2025-04-12T20:04:28.996Z","avatar_url":"https://github.com/withlin.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# redis-canal-rs\n\n## 简介\n![Build Status](https://github.com/withlin/redis-canal-rs/workflows/Rust/badge.svg?event=push\u0026branch=master)\n\nredis-canal-rs 是一个redis数据同步工具（支持RDB9解析以及AOF解析工具），支持到redis5.x版本。\n\n## 背景\n\n* Redis数据的跨机房同步\n* 异构数据的迁移；比如Redis到mysql，MQ等\n\n## 设计\n\n模拟redis slave,然后去dump redis master的rdb和aof\n\n## 用法\n\n```\npub fn main() -\u003e redis::RedisResult\u003c()\u003e {\n\n    let addr = String::from(\"localhost:6379\");\n    let password = \"pwd\".to_string();\n    let offset = -1;\n    let db = 0;\n    let mut canal = rdb::Canal::new(addr, db, offset, password);\n    canal.dump_and_parse()?;\n    Ok(())\n} \n\n```\n\n## TODO\n- [ ] 断点续传继续完善\n- [ ] 代码重构\n- [ ] 支持async操作\n- [ ] 支持读取数据后输出的过滤\n- [ ] redis6.x\n\n## 感谢\n* [rdb-rs](https://github.com/badboy/rdb-rs)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwithlin%2Fredis-canal-rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwithlin%2Fredis-canal-rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwithlin%2Fredis-canal-rs/lists"}