{"action":"closed","issue":{"url":"https://api.github.com/repos/aschuch/AwesomeCache/issues/13","labels_url":"https://api.github.com/repos/aschuch/AwesomeCache/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/aschuch/AwesomeCache/issues/13/comments","events_url":"https://api.github.com/repos/aschuch/AwesomeCache/issues/13/events","html_url":"https://github.com/aschuch/AwesomeCache/issues/13","id":77650686,"number":13,"title":"Cache is empty when application quit and run background","user":{"login":"Persilos","id":8830732,"avatar_url":"https://avatars.githubusercontent.com/u/8830732?v=3","gravatar_id":"","url":"https://api.github.com/users/Persilos","html_url":"https://github.com/Persilos","followers_url":"https://api.github.com/users/Persilos/followers","following_url":"https://api.github.com/users/Persilos/following{/other_user}","gists_url":"https://api.github.com/users/Persilos/gists{/gist_id}","starred_url":"https://api.github.com/users/Persilos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Persilos/subscriptions","organizations_url":"https://api.github.com/users/Persilos/orgs","repos_url":"https://api.github.com/users/Persilos/repos","events_url":"https://api.github.com/users/Persilos/events{/privacy}","received_events_url":"https://api.github.com/users/Persilos/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-05-18T13:08:50Z","updated_at":"2015-06-11T21:20:28Z","closed_at":"2015-06-11T21:20:28Z","body":"Hi ! \r\nI have a class \"CacheUtilities\" i use it for stock a Static Cache of UIImage.\r\nI have a lot of image to load from my server, so i want load it just one time and keep it on my Cache (except if user close the process of my app ! )\r\n\r\nBut i have a problem, when the user only close my app (not kill the app, just quit and make it run in background) and come back, my Cache is empty and i need to reload all images... What's the solution ? \r\n\r\nI use the expires .Never\r\n\r\nCacheUtilities.getCacheImage().setObject(UIImage(data: data)!, forKey: sUrl, expires: CacheExpiry.Never)"}}