Skip to content
pubscout

shorebird_redis_client

0.0.16, released 6 days ago by shorebird.dev

A lightweight Dart client for communicating with a Redis server.

$ flutter pub add shorebird_redis_client
Source repository

What it does

Provides a Dart API to connect to a Redis server, execute commands like set, get, delete, and close the connection. Supports TLS, authentication, and several Redis data types including strings, JSON, and time series.

AI-written summary of version 0.0.15, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need fast, in‑memory caching or pub/sub via Redis from a Flutter/Dart app
  • Your backend already uses Redis and you want a direct client without an HTTP layer

Skip it when

  • You require offline‑first storage on the device
  • You need a relational or NoSQL database on the device

Strengths

  • TLS and credential support for secure connections
  • Supports multiple Redis data types (strings, JSON, TimeSeries)
  • Pure Dart, no native plugins required

Weaknesses

  • Only works with a reachable Redis server; no offline fallback
  • Limited to Redis functionality; not a full‑featured database

Setup

Kind
Pure Dart
Effort
Low
Code generation
No
Direct dependencies
1
import 'package:shorebird_redis_client/shorebird_redis_client.dart';

Future<void> main() async {
  final client = RedisClient();
  await client.connect();
  await client.set(key: 'HELLO', value: 'WORLD');
  final value = await client.get(key: 'HELLO'); // WORLD
  await client.delete(key: 'HELLO');
  await client.close();
}

Alternatives

Packages that do the same job and could replace shorebird_redis_client.

  • posthog_flutter

    Flutter client for PostHog analytics, feature flags, and session replay

  • vania

    A fast backend framework for Dart with routing, ORM, migrations, and middleware.

  • google_cloud_firestore

    A Dart client library for Google Cloud Firestore database.

  • bones_api

    A powerful API backend framework for Dart with HTTP server, routing, SQL translator, and DB adapters.

Works with

Packages commonly used together with shorebird_redis_client: ones it builds on, ones built on it, and its own family.