Search packages, repositories and app categories

GitHub repositorymelodysdreamj/orange

orange

melodysdreamj/orange open-source repository details.

orange project cover
Stars
10
Forks
0
Last push (UTC)
Nov 13, 2024
Project status
Active

Original README

English project snapshot. Visit GitHub for the latest content.

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 author

june lee ↗

A developer in Songdo who loves cafes and good restaurants.

LanguagesDart

Packages published by this repository

Dependencies used

Dependency list 8 items

How do I choose a repository?

Start with your use case, compare repository activity, and check the original project before adopting it.

  1. Search by repository name, owner or description, then narrow the results by topic.
  2. Compare stars, forks and recent pushes. Stars show community interest, not a guarantee of quality.
  3. Read the README, license and issues on GitHub before using a project.

Sources and maintenance

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

GitHub Docs — About repositories ↗