How to set caching policy in RESTkit 0.2

ios, restkit

Solution

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

Problem

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.

Original source