-
Notifications
You must be signed in to change notification settings - Fork 5
Usage
The idea behind the framework is that you should configure as little as necessary. With as little setup as possible.
The first thing you have to do is setup the base url and queue persistence type.
[[RLMRealm defaultRealm] setBaseUrl:@"http://api.example.com"
queuePersistance:RestRequestQueuePeristanceInMemory];
The url and queue persistence is set per realm.
There are two options for queue persistence, they are not related to how the data is stored in the realm. The queue is responsible for storing and retiring network requests.
RestRequestQueuePeristanceInMemory will clear the queue of network request when your app quits. This can be useful for tests or when you are using an in memory database.
RestRequestQueuePeristanceDatabase will store all requests in a database and will therefor survive app launches. This is useful when you want to keep you local database in sync with the backends.