Latest 0.1.0
Homepage https://github.com/Pircate/RxMoyaCache
License MIT
Platforms ios 9.0
Dependencies Moya/RxSwift, Cache
Authors

CI Status
Version
Carthage compatible
License
Platform

Example

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

Requirements

Installation

RxMoyaCache is available through CocoaPods or Carthage. To install
it, simply add the following line to your Podfile or Cartfile:

CocoaPods

pod 'RxMoyaCache'

Carthage

github "Pircate/RxMoyaCache"

Usage

Import

import RxMoyaCache

Snippet

let provider = MoyaProvider<StoryAPI>()
provider.rx.cache(.latest)
    .request()
    .map(StoryListModel.self)
    .subscribe(onNext: { object in

    }, onError: { error in

    }).disposed(by: disposeBag)

Author

Pircate, [email protected]

License

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

Latest podspec

{
    "name": "RxMoyaCache",
    "version": "0.1.0",
    "summary": "A network cache library based on RxSwift/Moya/Cache.",
    "homepage": "https://github.com/Pircate/RxMoyaCache",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Pircate": "[email protected]"
    },
    "source": {
        "git": "https://github.com/Pircate/RxMoyaCache.git",
        "tag": "0.1.0"
    },
    "platforms": {
        "ios": "9.0"
    },
    "swift_version": "4.0",
    "source_files": "RxMoyaCache/Classes/**/*",
    "dependencies": {
        "Moya/RxSwift": [],
        "Cache": []
    }
}

Pin It on Pinterest

Share This