title: How to cache response in iOS and show only when internet is not available?
body: <p>I want to cache the response of API. When the internet is available it should fetch data from the server and should update locally cached data every time and when the internet is not available it should show cached data. Is it possible with <code>Alamofire or URLSession</code>? or do I need to use a database and I should manually handle this?</p>