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

GitHub 代码仓melodysdreamj/orange

橙色

melodysdreamj/orange open-source repository details.

橙色 项目封面
星标
10
复刻
0
最近推送(UTC)
2024年11月13日
项目状态
未归档

原始 README

以下为英文项目原文快照,最新内容请访问 GitHub。

pub package GitHub

Orange Database 🍊

Discord Server Invite Kakao_Talk

Features

  • ✨ Super Fast Speed 100 x faster than SharedPreference
  • 🦄 Super Easy: same api as SharedPreference
  • 🚀 All Environment Work: Working on Android, iOS, Web, Mac, Windows, Linux even cli.
  • 🌐 No Build Runner: Do not waste your time on build_runner

Installation

flutter pub add orange

Usage

await Orange.init();

Orange.setString('orange', 'is delicious! 🍊');

String? orange = Orange.getString('orange');
print(orange); // is delicious! 🍊

Orange.remove('orange');

you got all usage of Orange now! 🎉

Benchmark

read & write 10000 times with Orange Database 🍊 and shared_preferences

orange 🍊 write performance test time: 3 ms
orange 🍊 read performance test time: 1 ms

shared_preferences write performance test time: 49228 ms
shared_preferences read performance test time: 28 ms

hive write performance test time: 1538 ms
hive read performance test time: 4 ms

sembast write performance test time: 14884 ms
sembast read performance test time: 146 ms

you can re run the benchmark test this repository

Advanced Usage

Check Saved Disk Time

if you want to check if the data is saved on disk, you can use Orange.isSavedToDisk() method.

bool isSaved = await Orange.isSavedToDisk();
print(isSaved); // true
Support List & Map

note that only support string , int , double , bool type in List and Map.

june lee GitHub avatar
GitHub 作者

june lee ↗

A developer in Songdo who loves cafes and good restaurants.

语言Dart

此仓库发布的插件

使用的依赖

依赖清单 8 项

如何选择适合项目的代码仓?

先按使用场景筛选,再比较项目活跃情况,最后到原始仓库核对使用要求。

  1. 通过仓库名、作者或描述搜索,再按技术分类缩小范围。
  2. 结合星标、复刻与最近推送比较项目;星标反映社区关注,不代表质量保证。
  3. 使用前在 GitHub 核对 README、许可证与 Issues。

来源与维护

“A repository is the most basic element of GitHub.”

GitHub Docs — About repositories ↗