{"action":"created","issue":{"url":"https://api.github.com/repos/jpodwys/superagent-cache/issues/31","repository_url":"https://api.github.com/repos/jpodwys/superagent-cache","labels_url":"https://api.github.com/repos/jpodwys/superagent-cache/issues/31/labels{/name}","comments_url":"https://api.github.com/repos/jpodwys/superagent-cache/issues/31/comments","events_url":"https://api.github.com/repos/jpodwys/superagent-cache/issues/31/events","html_url":"https://github.com/jpodwys/superagent-cache/issues/31","id":135497165,"number":31,"title":"Smarter cache invalidation","user":{"login":"jpodwys","id":5660076,"avatar_url":"https://avatars.githubusercontent.com/u/5660076?v=3","gravatar_id":"","url":"https://api.github.com/users/jpodwys","html_url":"https://github.com/jpodwys","followers_url":"https://api.github.com/users/jpodwys/followers","following_url":"https://api.github.com/users/jpodwys/following{/other_user}","gists_url":"https://api.github.com/users/jpodwys/gists{/gist_id}","starred_url":"https://api.github.com/users/jpodwys/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jpodwys/subscriptions","organizations_url":"https://api.github.com/users/jpodwys/orgs","repos_url":"https://api.github.com/users/jpodwys/repos","events_url":"https://api.github.com/users/jpodwys/events{/privacy}","received_events_url":"https://api.github.com/users/jpodwys/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/jpodwys/superagent-cache/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-02-22T18:13:39Z","updated_at":"2016-06-07T02:40:50Z","closed_at":null,"body":"Let's say I have a basic CRUD journal site--I can create and entry, edit/delete and entry, view and entry, and view a list of entries. Cache invalidation works great when I delete or update an entry. However, there is no way to automatically tell the entry list cache key to invalidate when a CRUD action happens to a single entry.\r\n\r\nI need to add some way of associating keys so that when a single entry, for example, is modified, the cache key for the entry list is invalidated."},"comment":{"url":"https://api.github.com/repos/jpodwys/superagent-cache/issues/comments/224151957","html_url":"https://github.com/jpodwys/superagent-cache/issues/31#issuecomment-224151957","issue_url":"https://api.github.com/repos/jpodwys/superagent-cache/issues/31","id":224151957,"user":{"login":"jpodwys","id":5660076,"avatar_url":"https://avatars.githubusercontent.com/u/5660076?v=3","gravatar_id":"","url":"https://api.github.com/users/jpodwys","html_url":"https://github.com/jpodwys","followers_url":"https://api.github.com/users/jpodwys/followers","following_url":"https://api.github.com/users/jpodwys/following{/other_user}","gists_url":"https://api.github.com/users/jpodwys/gists{/gist_id}","starred_url":"https://api.github.com/users/jpodwys/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jpodwys/subscriptions","organizations_url":"https://api.github.com/users/jpodwys/orgs","repos_url":"https://api.github.com/users/jpodwys/repos","events_url":"https://api.github.com/users/jpodwys/events{/privacy}","received_events_url":"https://api.github.com/users/jpodwys/received_events","type":"User","site_admin":false},"created_at":"2016-06-07T02:40:50Z","updated_at":"2016-06-07T02:40:50Z","body":"I think I can accomplish this by allowing users to add a prefix to the generated cache key via a chainable. However, this requires updates to all cache modules to handle deletions of keys that start with a given string. "}}
{"actor":{"display_login":"jpodwys"}}