{"action":"created","issue":{"url":"https://api.github.com/repos/kean/DFImageManager/issues/55","labels_url":"https://api.github.com/repos/kean/DFImageManager/issues/55/labels{/name}","comments_url":"https://api.github.com/repos/kean/DFImageManager/issues/55/comments","events_url":"https://api.github.com/repos/kean/DFImageManager/issues/55/events","html_url":"https://github.com/kean/DFImageManager/issues/55","id":102078209,"number":55,"title":"Manually add/remove image to/from the cache","user":{"login":"juanchoc","id":860719,"avatar_url":"https://avatars.githubusercontent.com/u/860719?v=3","gravatar_id":"","url":"https://api.github.com/users/juanchoc","html_url":"https://github.com/juanchoc","followers_url":"https://api.github.com/users/juanchoc/followers","following_url":"https://api.github.com/users/juanchoc/following{/other_user}","gists_url":"https://api.github.com/users/juanchoc/gists{/gist_id}","starred_url":"https://api.github.com/users/juanchoc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/juanchoc/subscriptions","organizations_url":"https://api.github.com/users/juanchoc/orgs","repos_url":"https://api.github.com/users/juanchoc/repos","events_url":"https://api.github.com/users/juanchoc/events{/privacy}","received_events_url":"https://api.github.com/users/juanchoc/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-08-20T07:19:46Z","updated_at":"2015-08-20T09:06:40Z","closed_at":null,"body":"Hi kean,\r\n\r\nI have a use case where I need to manually remove one specific image from the cache (both memory and disk), and replace it with a new image.\r\n\r\nI tried the following with no success:\r\n\r\n```objective-c\r\nDFCachedImageResponse *cachedImageResponse = [[DFCachedImageResponse alloc] initWithImage:image info:nil expirationDate:CACurrentMediaTime() + 1440.0f];\r\nDFImageCache *cache = [DFImageCache new];\r\n[cache storeImageResponse:cachedImageResponse forKey:[photoURL absoluteString]];\r\n```\r\n\r\nRunning the above code raises a NSInvalidArgumentException:\r\n> -[DFImageRequest owner]: unrecognized selector sent to instance 0x17065e090\r\nat DFImageManagerImageLoader.m line 114 (isEqual)\r\n> if (other.owner != _owner) {\r\n\r\nI haven't found a clear/valid way on how accomplish this, could you point me in the right direction?\r\n\r\nThanks in advance,\r\nJuan\r\n"},"comment":{"url":"https://api.github.com/repos/kean/DFImageManager/issues/comments/132945604","html_url":"https://github.com/kean/DFImageManager/issues/55#issuecomment-132945604","issue_url":"https://api.github.com/repos/kean/DFImageManager/issues/55","id":132945604,"user":{"login":"kean","id":1567433,"avatar_url":"https://avatars.githubusercontent.com/u/1567433?v=3","gravatar_id":"","url":"https://api.github.com/users/kean","html_url":"https://github.com/kean","followers_url":"https://api.github.com/users/kean/followers","following_url":"https://api.github.com/users/kean/following{/other_user}","gists_url":"https://api.github.com/users/kean/gists{/gist_id}","starred_url":"https://api.github.com/users/kean/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kean/subscriptions","organizations_url":"https://api.github.com/users/kean/orgs","repos_url":"https://api.github.com/users/kean/repos","events_url":"https://api.github.com/users/kean/events{/privacy}","received_events_url":"https://api.github.com/users/kean/received_events","type":"User","site_admin":false},"created_at":"2015-08-20T09:06:40Z","updated_at":"2015-08-20T09:06:40Z","body":"I should probably add some diagrams :)"}}