Swiftpack.co - Package - EFPrefix/EFStorage

EFStorage

An easy way to store anything anywhere -- UserDefaults, KeychainAccess, YYCache, you name it!

@EFStorageUserDefaults(forKey: "username", defaultsTo: User.Name.random())
var username: String

// Or, if you don't like constraints,
UserDefaults.efStorage.username = "OwO"

Usage

License

MIT License.

Icons of the demo projects in CocoaPods/ folder are from 萌娘百科 - 四次元ポケット. We are using it because in the hope that EFStorage can be like Doraemon's 4D Pocket to you.

Github

link
Stars: 4
Help us keep the lights on

Used By

Total: 1

Releases

0.2.0 - Sep 11, 2019

  • Internal look up table cleans up less frequently but more efficiently
  • Underlying storages may return nil or be swizzled to another implementation
  • Archiving your project now works as expected
  • Only for Swift 5.1, tested on Xcode 11 GM. Point your package manager to swift-5 branch if needed.

Supported Containers

* YYCache
* UserDefaults
* KeychainAccess

0.1.1 - Aug 20, 2019

  • EFSingleInstanceStorageReference.forKey is now thread safe
  • An internal storage that holds EFSingleInstanceStorageReference now cleans up to use less space
  • Restrict debug messages to print only when in DEBUG

Supported Containers

* YYCache
* UserDefaults
* KeychainAccess

0.1.0 - Aug 20, 2019

  • EFSingleInstanceStorageReference.forKey is now thread safe
  • An internal storage that holds EFSingleInstanceStorageReference now cleans up to use less space
  • Fix compilation failure

Supported Containers

* YYCache
* UserDefaults
* KeychainAccess

0.0.2 - Aug 19, 2019

  • You can now read documents on how to use EFStorage on our Wiki page
  • EFStorageYYCache is available through both Cocoapods and Swift Package Manager!

Supported Containers

+ YYCache
* UserDefaults
* KeychainAccess

0.0.1 - Aug 16, 2019

This release should have all the basic features that you may need. Feedbacks are welcome

Supported Containers

+ UserDefaults
+ KeychainAccess