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: 6

Used By

Total: 0

Releases

EFStorage 0.3.2 - 2020-01-08 00:06:08

Changed

  • fix CocoaPods version mismatch

Supported Containers

* YYCache
* UserDefaults
* KeychainAccess

EFStorage 0.3.1 - Freeze - 2019-12-07 09:18:00

Changed

  • fix YYStorage release version

Supported Containers

* YYCache
* UserDefaults
* KeychainAccess

EFStorage 0.3.0 - Safety First - 2019-09-24 23:59:31

BREAKING CHANGE

  • value protocols now return Result<AsIsStorable, Error> for type safety and explicit error message

Supported Containers

* YYCache
* UserDefaults
* KeychainAccess

EFStorage 0.2.0 - No more defaulting - 2019-09-11 21:23:49

  • 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

EFStorage 0.1.1 - Race, Rest, Reset [Swift 5.1 ver.] - 2019-08-20 05:19:34

  • 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

EFStorage 0.1.0 - Locked, but free [Swift 5 ver.] - 2019-08-20 05:17:40

  • 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

EFStorage 0.0.2 - Documents found in Cache - 2019-08-19 05:19:20

  • 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

EFStorage 0.0.1 - Ready, Set, Store! - 2019-08-16 09:43:06

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

Supported Containers

+ UserDefaults
+ KeychainAccess