{"action":"opened","issue":{"url":"https://api.github.com/repos/vicanso/promise-memorize/issues/1","repository_url":"https://api.github.com/repos/vicanso/promise-memorize","labels_url":"https://api.github.com/repos/vicanso/promise-memorize/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/vicanso/promise-memorize/issues/1/comments","events_url":"https://api.github.com/repos/vicanso/promise-memorize/issues/1/events","html_url":"https://github.com/vicanso/promise-memorize/issues/1","id":152788072,"number":1,"title":"Any way to not memorize the rejected promise?","user":{"login":"hossam-fares","id":1850565,"avatar_url":"https://avatars.githubusercontent.com/u/1850565?v=3","gravatar_id":"","url":"https://api.github.com/users/hossam-fares","html_url":"https://github.com/hossam-fares","followers_url":"https://api.github.com/users/hossam-fares/followers","following_url":"https://api.github.com/users/hossam-fares/following{/other_user}","gists_url":"https://api.github.com/users/hossam-fares/gists{/gist_id}","starred_url":"https://api.github.com/users/hossam-fares/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hossam-fares/subscriptions","organizations_url":"https://api.github.com/users/hossam-fares/orgs","repos_url":"https://api.github.com/users/hossam-fares/repos","events_url":"https://api.github.com/users/hossam-fares/events{/privacy}","received_events_url":"https://api.github.com/users/hossam-fares/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-05-03T14:29:15Z","updated_at":"2016-05-03T14:29:15Z","closed_at":null,"body":"I would like not to memorize the rejected promise, anyway to do it?\r\n\r\nExample:\r\n\r\n```js\r\nvar memorize = require('promise-memorize');\r\n\r\nfunction promiseFactory() {\r\n  return Q.promise(function (resolve, reject) {\r\n    console.log('Im executing, no cache');\r\n    reject({error: \"erro\"})\r\n  });\r\n}\r\n\r\nvar memo = memorize(promiseFactory);\r\nmemo(); /// will be rejected and print  'Im executing, no cache'\r\nmemo(); // will retrieve the rejection from cache and not execute the promise again\r\n```"}}