{"action":"created","issue":{"url":"https://api.github.com/repos/manyminds/api2go/issues/161","labels_url":"https://api.github.com/repos/manyminds/api2go/issues/161/labels{/name}","comments_url":"https://api.github.com/repos/manyminds/api2go/issues/161/comments","events_url":"https://api.github.com/repos/manyminds/api2go/issues/161/events","html_url":"https://github.com/manyminds/api2go/issues/161","id":103061605,"number":161,"title":"Question about storage","user":{"login":"trapias","id":2881610,"avatar_url":"https://avatars.githubusercontent.com/u/2881610?v=3","gravatar_id":"","url":"https://api.github.com/users/trapias","html_url":"https://github.com/trapias","followers_url":"https://api.github.com/users/trapias/followers","following_url":"https://api.github.com/users/trapias/following{/other_user}","gists_url":"https://api.github.com/users/trapias/gists{/gist_id}","starred_url":"https://api.github.com/users/trapias/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trapias/subscriptions","organizations_url":"https://api.github.com/users/trapias/orgs","repos_url":"https://api.github.com/users/trapias/repos","events_url":"https://api.github.com/users/trapias/events{/privacy}","received_events_url":"https://api.github.com/users/trapias/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-08-25T16:10:47Z","updated_at":"2015-09-02T09:43:50Z","closed_at":"2015-09-02T09:43:50Z","body":"I'm facing what likes to be a \"caching\" problem in my resource classes: I'd like to understand if I miss something or if this is the right way to solve the problem.\r\n\r\nWhat I mean is, given an User resource like in the CRUD example but linked to a database, I see that if I call the FindAll() method to get a list of users, then Delete() one of them and again call FindAll(), I still see the deleted user in list.\r\n\r\nTo remove it, I now force a new storage instance to be created in FindAll before calling storage:\r\n\r\n\ts.UserStorage = storage.NewUserStorage()\r\n\tusers, err := s.UserStorage.GetAll( ....)\r\n\r\nThe storage implementation appears to be correct, and the same for db procedures (I see the same problem on different resources): am I doing something wrong or is this normal? Where to look for errors, if it's my implementation's fault?\r\n\r\nThank you,\r\nal.\r\n"},"comment":{"url":"https://api.github.com/repos/manyminds/api2go/issues/comments/137002508","html_url":"https://github.com/manyminds/api2go/issues/161#issuecomment-137002508","issue_url":"https://api.github.com/repos/manyminds/api2go/issues/161","id":137002508,"user":{"login":"sharpner","id":574362,"avatar_url":"https://avatars.githubusercontent.com/u/574362?v=3","gravatar_id":"","url":"https://api.github.com/users/sharpner","html_url":"https://github.com/sharpner","followers_url":"https://api.github.com/users/sharpner/followers","following_url":"https://api.github.com/users/sharpner/following{/other_user}","gists_url":"https://api.github.com/users/sharpner/gists{/gist_id}","starred_url":"https://api.github.com/users/sharpner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sharpner/subscriptions","organizations_url":"https://api.github.com/users/sharpner/orgs","repos_url":"https://api.github.com/users/sharpner/repos","events_url":"https://api.github.com/users/sharpner/events{/privacy}","received_events_url":"https://api.github.com/users/sharpner/received_events","type":"User","site_admin":false},"created_at":"2015-09-02T09:43:50Z","updated_at":"2015-09-02T09:43:50Z","body":"is this still relevant? I'm sorry but I don't think anyone is currently debugging the code for you :) If you have a specific question about api2go feel free to ask, but since this problem is most likely within your code, it's better to ask on stackoverflow or somewhere else.  :-)"}}