RxMoyaCache
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.