I'd like to use RESTKit
not in the default way, which as far as I understand, is to update the cached objects by looking at unique IDs and either adding objects to the cache when new IDs are found or purging objects from the cache when old IDs exist.
What I'd like to do instead is always fetch objects from a URL endpoint, set the cache with these new objects, removing all the previous existing cached objects. The thing is that my JSON
doesn't have any unique IDs.
Is it possible to do this? I unsuccessfully tried removing the objects in the cache before calling for new objects. Before I try too many other things, I thought I'd ask here first if there is a standard way of doing this in RESTKit
.
Thanks in advance!