orange
O banco de dados Orange é super rápido e fácil, um armazenamento chave-valor moderno. Funciona em qualquer lugar e não precisa do build_runner.
melodysdreamj/orange open-source repository details.
Texto original em inglês. Visite o GitHub para a versão atual.
flutter pub add orange
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! 🎉
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
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
note that only support string , int , double , bool type in List and Map.
Lista de dependências 8 itens
^0.8.2{"sdk":"flutter"}^1.9.0^2.1.3^3.7.1^2.4.0+4{"sdk":"flutter"}—Filtre pelo caso de uso, compare a atividade e confira o projeto original antes de adotá-lo.
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗