redis
4.1.0, released 8 months ago by an unverified publisher
Redis client for Dart to send commands and parse responses.
What it does
Provides a pure‑Dart implementation of the Redis protocol, allowing you to connect to a Redis server, execute commands, and handle responses. Supports transactions, pub/sub, TLS, and binary data handling.
AI-written summary of version 4.1.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need direct communication with a Redis server from a Dart/Flutter app
- High‑performance command execution is required
- You want built‑in support for transactions, pub/sub, or TLS
Skip it when
- You need offline local storage
- You are looking for a UI‑focused package
- You require a managed backend service like Firebase
Strengths
- Fast and simple implementation
- Supports transactions, pub/sub, TLS, and binary data
- No external native dependencies
Weaknesses
- Only works with a reachable Redis server
- No built‑in reconnection or offline caching
- Limited to backend communication, no UI utilities
Setup
- Kind
- Pure Dart
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 0
import 'package:redis/redis.dart';
final conn = RedisConnection();
conn.connect('localhost', 6379).then((Command command) {
command.send_object(['SET', 'key', '0']).then((_) {
return command.send_object(['GET', 'key']);
}).then((value) => print(value)); // prints 0
});Alternatives
Packages that do the same job and could replace redis.
- posthog_flutter
Flutter client for PostHog analytics, feature flags, and session replay
84Compare - postgrest
Dart client library offering an ORM‑like interface to PostgREST/Supabase databases.
88Compare - shorebird_redis_client
A lightweight Dart client for communicating with a Redis server.
85Compare - meilisearch
Meilisearch API client for Dart and Flutter developers
67Compare
Works with
Packages commonly used together with redis: ones it builds on, ones built on it, and its own family.