deepwinter
deepwinter

Reputation: 4678

How to set caching policy in RESTkit 0.2

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.

Upvotes: 4

Views: 4321

Answers (1)

Wain
Wain

Reputation: 119031

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

Upvotes: 2

Related Questions