I am very new to NSCache.
I have an API call which results in several objects.How to store these objects in NSCache so that I don't require to call the API again.
How much data can be stored in NSCache. Is there a specific limit to store the data in NSCache.
Please help me.
From documentation for your relevance
https://developer.apple.com/library/mac/#documentation/Cocoa/Reference/NSCache_Class/Reference/Reference.html
The NSCache has a lot of auto-removal policies, which ensure that it does not use too much of the system’s memory. The system automatically carries out these policies if memory is needed by other applications. When invoked, these policies remove some items from the cache, minimizing its memory footprint.
Take a look at documentation and sample code.
Here is good explanation by Nick Zitzmann.