resp_client
1.2.0, released 6 years ago by blimster.net
A Dart client for Redis implementing low‑level and high‑level command APIs.
Single maintainer
What it does
Provides a connection to a RESP server, a client that handles request/response, and tiered command libraries. Supports raw command execution and convenient typed commands.
AI-written summary of version 1.2.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need direct Redis access from a Dart or Flutter app
- You want fine‑grained control over command tiers and responses
Skip it when
- You require a higher‑level ORM‑like abstraction
- You need built‑in connection pooling or advanced clustering support
Strengths
- Supports multiple command tiers for flexibility
- Handles RESP types and UTF‑8 encoding
- No external dependencies
Weaknesses
- No built‑in connection pooling or reconnection logic
- Limited to Redis protocol, no other backends
- API may be low‑level for beginners
Setup
- Kind
- Pure Dart
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 0
import 'package:resp_client/resp_client.dart';
import 'package:resp_client/resp_server.dart';
import 'package:resp_client/resp_commands.dart';
void main() async {
final server = await connectSocket('localhost');
final client = RespClient(server);
final commands = RespCommandsTier2(client);
final result = await commands.get('myKey');
print(result);
await server.close();
}Alternatives
Packages that do the same job and could replace resp_client.
- posthog_flutter
Flutter client for PostHog analytics, feature flags, and session replay
84Compare - serverpod_service_client
Generated client for the Serverpod service protocol.
78Compare - meilisearch
Meilisearch API client for Dart and Flutter developers
67Compare
Works with
Packages commonly used together with resp_client: ones it builds on, ones built on it, and its own family.