{"action":"created","issue":{"url":"https://api.github.com/repos/rfink/sequelize-redis-cache/issues/25","repository_url":"https://api.github.com/repos/rfink/sequelize-redis-cache","labels_url":"https://api.github.com/repos/rfink/sequelize-redis-cache/issues/25/labels{/name}","comments_url":"https://api.github.com/repos/rfink/sequelize-redis-cache/issues/25/comments","events_url":"https://api.github.com/repos/rfink/sequelize-redis-cache/issues/25/events","html_url":"https://github.com/rfink/sequelize-redis-cache/issues/25","id":174785256,"number":25,"title":"Can't call instance method after caching","user":{"login":"wong2","id":321947,"avatar_url":"https://avatars.githubusercontent.com/u/321947?v=3","gravatar_id":"","url":"https://api.github.com/users/wong2","html_url":"https://github.com/wong2","followers_url":"https://api.github.com/users/wong2/followers","following_url":"https://api.github.com/users/wong2/following{/other_user}","gists_url":"https://api.github.com/users/wong2/gists{/gist_id}","starred_url":"https://api.github.com/users/wong2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wong2/subscriptions","organizations_url":"https://api.github.com/users/wong2/orgs","repos_url":"https://api.github.com/users/wong2/repos","events_url":"https://api.github.com/users/wong2/events{/privacy}","received_events_url":"https://api.github.com/users/wong2/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-09-02T15:23:31Z","updated_at":"2016-09-06T16:38:16Z","closed_at":null,"body":"seems the query methods are returning plain js objects instead of model instances? why?"},"comment":{"url":"https://api.github.com/repos/rfink/sequelize-redis-cache/issues/comments/245010742","html_url":"https://github.com/rfink/sequelize-redis-cache/issues/25#issuecomment-245010742","issue_url":"https://api.github.com/repos/rfink/sequelize-redis-cache/issues/25","id":245010742,"user":{"login":"rfink","id":108414,"avatar_url":"https://avatars.githubusercontent.com/u/108414?v=3","gravatar_id":"","url":"https://api.github.com/users/rfink","html_url":"https://github.com/rfink","followers_url":"https://api.github.com/users/rfink/followers","following_url":"https://api.github.com/users/rfink/following{/other_user}","gists_url":"https://api.github.com/users/rfink/gists{/gist_id}","starred_url":"https://api.github.com/users/rfink/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rfink/subscriptions","organizations_url":"https://api.github.com/users/rfink/orgs","repos_url":"https://api.github.com/users/rfink/repos","events_url":"https://api.github.com/users/rfink/events{/privacy}","received_events_url":"https://api.github.com/users/rfink/received_events","type":"User","site_admin":false},"created_at":"2016-09-06T16:38:16Z","updated_at":"2016-09-06T16:38:16Z","body":"I've actually considered something similar, but the issue goes back to #24, where the module doesn't have a mechanism for invalidating a cached object on insert/update, so the model that is created with Model.build could be out of sync with the database.  Model.build could be called by the caller, which would solve this particular issue."}}
{"actor":{"display_login":"rfink"}}