UserDefaults를 사용하여 Login Cache 저장하기
UserDefaults를 사용하여 로그인 cache 정보를 저장하는 방법입니다. UserDefaults는 Local Database로Login credentials, tokens 등과 같은 소량의 데이터를 저장하기 위해 사용됩니다. Local DB를 저장하는 방식으로는 CoreData도 존재합니다.CoreData와 Userdefaults의 차이점으로는CoreData는 여러 속성과 개체간의 관계를 가진 복잡한 데이터 모델을 저장하도록 설계되어있습니다. CoreData와 차이점Userdefaults는 간단한 string값을 저장하는 반면, CoreData에는 array, dictionary를 저장 할 수 있습니다.Userdefaults는 thread - safe이며 멀티 스레드에 별다른 문제 없이 접근해도 ..
iOS & swift
2023. 2. 26. 17:14
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- 레디세이 어플
- 엔디소프트 레이세이
- swift urlcomponent encode
- swift 네트워크 모듈화
- swift urlsession 공통화
- llm csv
- rag 기반 llm
- filemanager excel read
- swift network module
- swift urlsession network module
- swift network 공통화
- swift urlsession refactoring
- readysay
- swift queryitem encode
- rag llm pdf
- 레디세이
- swift 엑셀 읽기
- swift filemanager get excel
- swift urlsession module
- swift 엑셀 가져오기
- swift 자간
- swift get excel
- 공부 타이머 어플
- swift filemanager excel
- swift network refactoring
- chatgpt rag llm
- swift excel read
- llm pdf rag
- rag 기반 llm 챗봇
- focus timer 어플
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
글 보관함