{"action":"created","issue":{"url":"https://api.github.com/repos/spatie/laravel-responsecache/issues/131","repository_url":"https://api.github.com/repos/spatie/laravel-responsecache","labels_url":"https://api.github.com/repos/spatie/laravel-responsecache/issues/131/labels{/name}","comments_url":"https://api.github.com/repos/spatie/laravel-responsecache/issues/131/comments","events_url":"https://api.github.com/repos/spatie/laravel-responsecache/issues/131/events","html_url":"https://github.com/spatie/laravel-responsecache/issues/131","id":319863380,"number":131,"title":"Storing different response caches for different users","user":{"login":"ipsalej","id":38942180,"avatar_url":"https://avatars3.githubusercontent.com/u/38942180?v=4","gravatar_id":"","url":"https://api.github.com/users/ipsalej","html_url":"https://github.com/ipsalej","followers_url":"https://api.github.com/users/ipsalej/followers","following_url":"https://api.github.com/users/ipsalej/following{/other_user}","gists_url":"https://api.github.com/users/ipsalej/gists{/gist_id}","starred_url":"https://api.github.com/users/ipsalej/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ipsalej/subscriptions","organizations_url":"https://api.github.com/users/ipsalej/orgs","repos_url":"https://api.github.com/users/ipsalej/repos","events_url":"https://api.github.com/users/ipsalej/events{/privacy}","received_events_url":"https://api.github.com/users/ipsalej/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-05-03T10:21:31Z","updated_at":"2018-05-03T11:16:44Z","closed_at":null,"author_association":"NONE","body":"Hello,\r\n\r\nI would like to store separate caches for different authenticated users, since I'm showing very different information in the same response depending on the role of the authenticated user.\r\n\r\nIs this possible with this package? If it is, which is the recommended approach?\r\n\r\nThank you in advance and have a good day!"},"comment":{"url":"https://api.github.com/repos/spatie/laravel-responsecache/issues/comments/386262088","html_url":"https://github.com/spatie/laravel-responsecache/issues/131#issuecomment-386262088","issue_url":"https://api.github.com/repos/spatie/laravel-responsecache/issues/131","id":386262088,"user":{"login":"khanhvu14","id":4197632,"avatar_url":"https://avatars1.githubusercontent.com/u/4197632?v=4","gravatar_id":"","url":"https://api.github.com/users/khanhvu14","html_url":"https://github.com/khanhvu14","followers_url":"https://api.github.com/users/khanhvu14/followers","following_url":"https://api.github.com/users/khanhvu14/following{/other_user}","gists_url":"https://api.github.com/users/khanhvu14/gists{/gist_id}","starred_url":"https://api.github.com/users/khanhvu14/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/khanhvu14/subscriptions","organizations_url":"https://api.github.com/users/khanhvu14/orgs","repos_url":"https://api.github.com/users/khanhvu14/repos","events_url":"https://api.github.com/users/khanhvu14/events{/privacy}","received_events_url":"https://api.github.com/users/khanhvu14/received_events","type":"User","site_admin":false},"created_at":"2018-05-03T11:16:44Z","updated_at":"2018-05-03T11:16:44Z","author_association":"NONE","body":"You can override Cache Profile same with my example\r\n```\r\nuse Illuminate\\Support\\Facades\\Auth;\r\npublic function cacheNameSuffix(Request $request): string\r\n    {\r\n       $user = Auth::user();\r\n        if($user){\r\n            return $user->id;\r\n        }\r\n        return '';\r\n    }\r\n```"}}
{"actor":{"display_login":"khanhvu14"}}