Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/efprefix/efstorage
Store anything anywhere with ease. Documentation:
https://github.com/efprefix/efstorage
dynamicmemberlookup hacktoberfest keychain keychain-access keychain-wrapper property-wrapper propertywrapper user-defaults userdefaults
Last synced: about 2 months ago
JSON representation
Store anything anywhere with ease. Documentation:
- Host: GitHub
- URL: https://github.com/efprefix/efstorage
- Owner: EFPrefix
- License: mit
- Created: 2019-08-07T08:37:55.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-03-29T13:45:48.000Z (over 1 year ago)
- Last Synced: 2024-04-24T15:23:38.749Z (8 months ago)
- Topics: dynamicmemberlookup, hacktoberfest, keychain, keychain-access, keychain-wrapper, property-wrapper, propertywrapper, user-defaults, userdefaults
- Language: Swift
- Homepage: https://github.com/EFPrefix/EFStorage/wiki
- Size: 460 KB
- Stars: 9
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# EFStorage
An easy way to store anything anywhere -- UserDefaults, KeychainAccess, YYCache, you name it!
```swift
@EFStorageUserDefaults(forKey: "username")
var username: String = User.Name.random()// Or, if you don't like constraints,
UserDefaults.efStorage.username = "OwO"
```## Usage
* [WARNING](https://github.com/EFPrefix/EFStorage/wiki), and Table of Contents | **注意事项**
* [Adding `EFStorage` to your project](https://github.com/EFPrefix/EFStorage/wiki/Integration) | [集成 `EFStorage`](https://github.com/EFPrefix/EFStorage/wiki/集成)
* [Swift Package Manager](https://github.com/EFPrefix/EFStorage/wiki/Integration#swift-package-manager) | [中文](https://github.com/EFPrefix/EFStorage/wiki/集成#swift-package-manager)
* [Cocoapods](https://github.com/EFPrefix/EFStorage/wiki/Integration#cocoapods) | [中文](https://github.com/EFPrefix/EFStorage/wiki/集成#cocoapods)
* [Using `EFStorage`](https://github.com/EFPrefix/EFStorage/wiki/Usage) | [使用 `EFStorage`](https://github.com/EFPrefix/EFStorage/wiki/用法)
* [@propertyWrapper](https://github.com/EFPrefix/EFStorage/wiki/Usage#as-propertywrapper) | [属性包装器](https://github.com/EFPrefix/EFStorage/wiki/用法#propertywrapper-属性包装器)
* [@dynamicMemberLookup](https://github.com/EFPrefix/EFStorage/wiki/Usage#through-dynamicmemberlookup) | [动态成员查找](https://github.com/EFPrefix/EFStorage/wiki/用法#dynamicmemberlookup-动态成员查找)
* [non-standard/default/shared storage](https://github.com/EFPrefix/EFStorage/wiki/Usage#non-default-container) | [非默认容器](https://github.com/EFPrefix/EFStorage/wiki/用法#放在其他什么地方吧)
* [container/content type mix & match](https://github.com/EFPrefix/EFStorage/wiki/Usage#supported-containers) | [类型结合与转换](https://github.com/EFPrefix/EFStorage/wiki/用法#但是)
* [storing custom types](https://github.com/EFPrefix/EFStorage/wiki/Usage#more-storables) | [存储更多类型](https://github.com/EFPrefix/EFStorage/wiki/用法#能放点其他的吗太能了)
* [error handling](https://github.com/EFPrefix/EFStorage/wiki/Usage#assertion-failures) | [异常处理](https://github.com/EFPrefix/EFStorage/wiki/用法#我的程序炸了)
* [Expand `EFStorage` to Support Your Data Store](https://github.com/EFPrefix/EFStorage/wiki/Extend) | [让 `EFStorage` 支持新的存储方案](https://github.com/EFPrefix/EFStorage/wiki/扩展)## License
MIT License.
Icons of the demo projects in `CocoaPods/` folder are from [萌娘百科 - 四次元ポケット](https://zh.moegirl.org/zh-hans/四次元口袋). We are using it because in the hope that EFStorage can be like Doraemon's 4D Pocket to you.