搜索插件、代码仓与 APP 分类

插件详情v0.0.15

shorebird_redis_client

一个轻量级的 Dart 客户端库,用于与 Redis 服务器通信。由 Shorebird 开发。

AndroidiOSmacOSWindowsLinux
近 30 天下载
11万
喜欢数
21
Pub 分数
160

安装插件

flutter pub add shorebird_redis_client

插件介绍

基于插件公开信息、社区数据与项目使用情况整理的选型参考。

由 Shorebird 开发的轻量级 Dart 客户端,用于 Redis,可在多个平台上实现与 Redis 服务器的无缝通信。设计简洁高效,支持键值存储、过期和发布/订阅消息等基本 Redis 操作。适用于 Flutter 应用中的实时数据同步、缓存和会话管理。该库具有平台无关性,可在 Android、iOS、macOS、Windows 和 Linux 上运行,适合需要快速可靠数据访问的跨平台应用。

适合场景

  • 实时数据同步
  • 缓存频繁访问的数据
  • 会话管理
  • 发布/订阅消息
  • 用户状态持久化

主要特点

  • 轻便高效
  • 跨平台支持
  • 支持基本的 Redis 命令
  • 内置连接处理
  • 常用操作的简单 API

适合对象

  • 需要 Redis 集成的 Flutter 应用
  • 开发实时功能的开发者
  • 需要快速内存数据存储的应用程序
  • 使用 Shorebird 进行应用更新的团队
  • 针对多个操作系统的项目

使用建议

  • 需要一个正在运行的 Redis 服务器
  • 仅限基本的 Redis 功能
  • 无内置连接池
  • 不适合复杂的 Redis 使用场景
  • 取决于网络可用性

原始 README

以下为关联源码仓库的 README 原文快照,最新内容请访问源码仓库。

Shorebird 🐦

Discord Shorebird Code Push - Flutter over the air updates | Product Hunt

ci e2e codecov License: MIT License: Apache

Getting Started

Visit https://docs.shorebird.dev to get started.

Packages

This repository is a monorepo containing the following packages:

Package Description
shorebird_cli Command-line which allows developers to interact with various Shorebird services
shorebird_code_push_client Dart library which allows Dart applications to interact with the Shorebird CodePush API
shorebird_code_push_protocol Dart library which contains common interfaces used by Shorebird CodePush
artifact_proxy Dart server which supports intercepting and proxying Flutter artifact requests
discord_gcp_alerts Dart server which forwards GCP alerts to Discord
flutter_version_resolver Command-line utility that determines which Flutter version should be used for a project
jwt Dart library for verifying JSON Web Tokens
redis_client Dart library for interacting with Redis
scoped_deps A simple dependency injection library built on Zones
stripe_api Dart library for interacting with Stripe

For more information, please refer to the documentation for each package.

Contributing

If you're interested in contributing, please join us on Discord.

Environment setup

Working on Shorebird requires Dart.

./scripts/bootstrap.sh will run pub get all packages in the repository.

Running tests

We don't yet have a script to run tests locally. For now, we recommend using very_good test -r in the packages directory to run all shorebird tests.

(If you run it in the root, it will find packages in bin/cache/flutter and try to run tests there, some of which will fail.)

To generate a coverage report install lcov:

brew install lcov

Then run tests with the --coverage flag:

very_good test -r --coverage
genhtml coverage/lcov.info -o coverage

You can view the generated coverage report via:

open coverage/index.html
Tracking coverage

The following command will generate a coverage report for the Dart packages:

dart test --coverage=coverage && dart pub global run coverage:format_coverage --lcov --in=coverage --out=coverage/lcov.info --packages=.dart_tool/package_config.json --check-ignore

Coverage reports are uploaded to Codecov.

License

Shorebird projects are licensed for use under either Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0) MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT) at your option.

See our license philosophy for more information on why we license files this way: https://handbook.shorebird.dev/engineering/#licensing-philosophy

所属分类

依赖

依赖清单 1 项

源码仓库

使用此插件的项目

暂无相关数据。

所在榜单