XBaseStorage 0.5.0

XBaseStorage 0.5.0

Maintained by ge3kxm.



 
Depends on:
KeychainAccess>= 0
RealmSwift>= 0
 

  • By
  • Poly.ma

XBaseStorage

CI Status Version License Platform

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

Installation

XBaseStorage is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'XBaseStorage'

说明

Cache:

  • AbstractMemoryCacheManager:抽象内存缓存类、使用时要继承该类、重写过期方法

  • GlobalMemoryCacheManager:单例、全局内存缓存类,可以直接使用

  • ScavengerManager:清理工具类,可以添加具体清理Handler,统一处理

DataBase:

  • DatabaseManager:数据库管理类,单例、包含curd操作

  • DatabaseMigrator:数据库迁移工具类,单例、项目中只要有任何模型修改,都需要修改版本号,然后在迁移方法中具体操作,在Appdelegate中调用

  • DatabaseModels:realm数据库模型demo

Keychain:

  • KeychainManager:Keychain工具类

SandBox:

  • SandBox:沙盒工具、创建文件夹、获取路径等

Author

Poly.ma, [email protected]

License

XBaseStorage is available under the MIT license. See the LICENSE file for more info.