SharedPreference vs PreperenceDatastore #21
Unanswered
KimGyeongyeon
asked this question in
프로젝트 회고
Replies: 1 comment
-
Datastore란?Datastore는 개선된 신규 데이터 저장소 솔루션으로, SharedPreferences를 대체합니다. Kotlin 코루틴과 Flow를 기반으로 한 Datastore는 두 가지 구현, 즉 타입 객체를 저장하는 Proto Datastore(프로토콜 버퍼로 지원) 및 키-값 쌍을 저장하는 Preferences Datastore를 제공합니다. 비동기적이고 일관된 트랜잭션 방식으로 데이터를 저장하여 SharedPreferences의 단점을 일부 극복합니다. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
PreperenceDatastore는 내부에서 IO 흐름으로 바꿔준다고 한다. SharedPreference는 어떨지 자세히 알아보자.
Beta Was this translation helpful? Give feedback.
All reactions