How to set caching policy in RESTkit 0.2

2019-05-07 20:42发布

问题:

I'm unclear how to use the RESTKit 0.2 API to set the caching policy. I have a request that is being rerun every time I open the app, but I would like it to be cached. How do I set the caching policy to always cache the request?

Update I learned that RestKit will automatically cache Core Data backed Mappings.

回答1:

Caching is controlled by the RKObjectRequestOperation class. Check the 'Caching' section of the documentation.



标签: ios restkit