{"id":45208027,"url":"https://github.com/nghiaphamln/muxis","last_synced_at":"2026-02-20T16:03:20.372Z","repository":{"id":336626316,"uuid":"1150166506","full_name":"nghiaphamln/muxis","owner":"nghiaphamln","description":"High-performance Redis client for Rust with automatic multiplexing, cluster support, and Tokio integration.","archived":false,"fork":false,"pushed_at":"2026-02-05T10:33:28.000Z","size":307,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-02-05T21:46:02.591Z","etag":null,"topics":["async","cluster","database","high-performance","multiplexing","redis","redis-client","resp2","resp3","rust","tokio"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nghiaphamln.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE-APACHE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":"ROADMAP.md","authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":"AGENTS.md","dco":null,"cla":null}},"created_at":"2026-02-05T00:43:00.000Z","updated_at":"2026-02-05T15:55:55.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/nghiaphamln/muxis","commit_stats":null,"previous_names":["nghiaphamln/muxis"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/nghiaphamln/muxis","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nghiaphamln%2Fmuxis","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nghiaphamln%2Fmuxis/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nghiaphamln%2Fmuxis/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nghiaphamln%2Fmuxis/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nghiaphamln","download_url":"https://codeload.github.com/nghiaphamln/muxis/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nghiaphamln%2Fmuxis/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29656590,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-20T09:27:29.698Z","status":"ssl_error","status_checked_at":"2026-02-20T09:26:12.373Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["async","cluster","database","high-performance","multiplexing","redis","redis-client","resp2","resp3","rust","tokio"],"created_at":"2026-02-20T16:03:18.000Z","updated_at":"2026-02-20T16:03:20.359Z","avatar_url":"https://github.com/nghiaphamln.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Muxis\n\nHigh-performance async Redis client for Rust with multiplexing and cluster support.\n\n[![Crates.io](https://img.shields.io/crates/v/muxis.svg)](https://crates.io/crates/muxis)\n[![Documentation](https://docs.rs/muxis/badge.svg)](https://docs.rs/muxis)\n[![License](https://img.shields.io/crates/l/muxis.svg)](LICENSE)\n\n## Features\n\n- **Async/Await**: Built on Tokio for high-performance async I/O\n- **Multiplexing**: Multiple concurrent requests over single connection\n- **Cluster Support**: Production-grade Redis Cluster with automatic routing and failover\n- **RESP Protocol**: Full RESP2 support with RESP3 coming soon\n- **Type Safety**: Strongly-typed API with comprehensive error handling\n- **Zero-Copy**: Efficient parsing using `bytes::Bytes`\n- **75+ Commands**: String, Hash, List, Set, Sorted Set operations\n\n## Quick Start\n\nAdd Muxis to your `Cargo.toml`:\n\n```toml\n[dependencies]\nmuxis = \"0.4\"\n```\n\nBasic usage:\n\n```rust\nuse muxis::Client;\nuse bytes::Bytes;\n\n#[tokio::main]\nasync fn main() -\u003e muxis::Result\u003c()\u003e {\n    let mut client = Client::connect(\"redis://127.0.0.1:6379\").await?;\n    \n    client.set(\"mykey\", Bytes::from(\"Hello, Muxis!\")).await?;\n    \n    if let Some(value) = client.get(\"mykey\").await? {\n        println!(\"Value: {}\", String::from_utf8_lossy(\u0026value));\n    }\n    \n    Ok(())\n}\n```\n\nRedis Cluster:\n\n```rust\nuse muxis::ClusterClient;\n\nlet client = ClusterClient::connect(\"127.0.0.1:7000,127.0.0.1:7001\").await?;\nclient.set(\"key\", Bytes::from(\"value\")).await?;\n```\n\n## Documentation\n\n- **[Getting Started](docs/getting-started.md)** - Installation, basic usage, connection URLs\n- **[Commands Reference](docs/commands.md)** - Complete command documentation\n- **[Cluster Mode](docs/cluster.md)** - Redis Cluster support, topology, failover\n- **[Multiplexing](docs/multiplexing.md)** - How concurrent requests work\n- **[Architecture](docs/architecture.md)** - Internal design and implementation\n\n## Feature Flags\n\nEnable optional features in `Cargo.toml`:\n\n```toml\n[dependencies]\nmuxis = { version = \"0.4\", features = [\"cluster\", \"tls\"] }\n```\n\nAvailable features:\n\n| Feature | Description |\n|---------|-------------|\n| `cluster` | Redis Cluster support with slot routing |\n| `tls` | TLS/SSL encrypted connections |\n| `resp3` | RESP3 protocol support (experimental) |\n| `json` | JSON serialization helpers |\n| `streams` | Redis Streams support |\n| `test-utils` | Testing utilities for integration tests |\n\n## Project Status\n\n**Current Version**: 0.4.0\n\n**Completed Features**:\n- RESP2 protocol codec\n- Multiplexed connections\n- 75+ Redis commands\n- Connection pooling\n- Redis Cluster with resilience (MOVED/ASK handling, failure detection, automatic retry)\n- Comprehensive documentation\n\n**In Development** (Roadmap):\n- Pipelining API\n- Pub/Sub support\n- Transactions (MULTI/EXEC)\n- Lua scripting\n- RESP3 protocol\n- Sentinel support\n\nSee [ROADMAP.md](ROADMAP.md) for detailed development plan.\n\n## Examples\n\nThe `examples/` directory contains working examples:\n\n```bash\n# Basic usage\ncargo run --example basic\n\n# Using ClientBuilder\ncargo run --example builder\n\n# Pipeline execution\ncargo run --example pipeline\n\n# Authentication\ncargo run --example auth\n\n# Redis Cluster\ncargo run --example cluster --features cluster\n```\n\n## Performance\n\nMuxis is designed for high performance:\n\n- **Multiplexing**: Share single connection across many concurrent requests\n- **Zero-copy**: Efficient buffer management with `bytes::Bytes`\n- **Connection pooling**: Reuse connections in cluster mode\n- **Smart routing**: Direct routing to correct cluster node\n\nBenchmarks available in `benches/` directory:\n\n```bash\ncargo bench --features cluster\n```\n\n## Testing\n\nRun tests:\n\n```bash\n# Unit tests (no Redis required)\ncargo test --lib --all-features\n\n# Integration tests (requires Redis)\ncargo test --test integration -- --ignored\n\n# Cluster tests (requires Redis Cluster)\ncargo test --test cluster_integration -- --ignored\n```\n\n## Contributing\n\nContributions are welcome! Please see [CONTRIBUTING.md](CONTRIBUTING.md) for guidelines.\n\nFor AI coding agents, see [AGENTS.md](AGENTS.md) for development guidelines and commands.\n\n## Versioning\n\nMuxis follows [Semantic Versioning 2.0](https://semver.org/).\n\nCurrent version `0.4.0` indicates:\n- Public API is not yet stable (breaking changes may occur)\n- Production-ready for internal use\n- Approaching 1.0.0 with feature completion\n\n## License\n\nLicensed under either of:\n\n- Apache License, Version 2.0 ([LICENSE-APACHE](LICENSE-APACHE) or http://www.apache.org/licenses/LICENSE-2.0)\n- MIT license ([LICENSE-MIT](LICENSE-MIT) or http://opensource.org/licenses/MIT)\n\nat your option.\n\n## Resources\n\n- **Documentation**: https://docs.rs/muxis\n- **Repository**: https://github.com/nghiaphamln/muxis\n- **Crates.io**: https://crates.io/crates/muxis\n- **Roadmap**: [ROADMAP.md](ROADMAP.md)\n- **Changelog**: [CHANGELOG.md](CHANGELOG.md)\n\n## Acknowledgments\n\nMuxis is inspired by [mini-redis](https://github.com/tokio-rs/mini-redis) and built with:\n\n- [Tokio](https://tokio.rs/) - Async runtime\n- [Bytes](https://github.com/tokio-rs/bytes) - Zero-copy buffer management\n- [Thiserror](https://github.com/dtolnay/thiserror) - Error handling\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnghiaphamln%2Fmuxis","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnghiaphamln%2Fmuxis","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnghiaphamln%2Fmuxis/lists"}