패키지, 저장소 및 앱 카테고리 검색

패키지 상세v1.2.10

orange

오렌지 데이터베이스는 매우 빠르고 사용하기 쉬운 현대적인 키-값 저장소입니다. 어디서나 작동하며 build_runner가 필요하지 않습니다.

AndroidiOSWebmacOSWindowsLinux
30일 다운로드
737
좋아요
22
Pub 점수
125

패키지 설치

flutter pub add orange

패키지 개요

공개 정보를 바탕으로 생성한 선택 가이드입니다.

Orange는 모든 플랫폼에서 단순성과 속도를 위해 설계된 고성능 현대식 키-값 저장소입니다. 빌드러너가 필요 없이 최소한의 설정으로 지속적 저장을 제공하여, 빠르고 신뢰할 수 있는 데이터 접근이 필요한 앱에 이상적입니다. Dart로 개발되어 Android, iOS, Web, macOS, Windows, Linux에서 원활하게 작동합니다. 가벼운 설계와 간단한 API 덕분에 개발자는 보일러플레이트나 복잡한 구성 없이 로컬 데이터 영구 저장을 빠르게 구현할 수 있습니다.

사용 사례

  • 앱 설정 저장
  • 자주 액세스되는 데이터 캐싱
  • 오프라인 우선 애플리케이션 상태 관리
  • 간단한 로컬 데이터 지속성
  • 사용자 세션 관리

주요 기능

  • 초고속 읽기/쓰기 작업
  • build_runner 종속성 없음
  • 크로스 플랫폼 호환성
  • 최소 API 표면
  • 자동 데이터 지속성
  • 경량이고 통합하기 쉬움

적합한 대상

  • 작은에서 중간 규모의 앱
  • 프로토타입 및 MVP
  • 오프라인 기능이 필요한 앱
  • 간단한 지속성을 원하는 개발자
  • 코드 생성을 피하는 프로젝트

고려 사항

  • 복잡한 쿼리에 적합하지 않습니다
  • 키-값 저장에 제한됨
  • 내장된 데이터 동기화 없음
  • 간단한 데이터 구조에 가장 적합
  • 대규모 데이터 세트에 적합하지 않습니다

원본 README

연결된 소스 저장소의 README 원문 스냅샷입니다. 최신 내용은 저장소에서 확인하세요.

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.

카테고리

의존성

의존성 목록 5 개

소스 저장소

이 패키지를 사용하는 프로젝트

아직 데이터가 없습니다.