{"action":"created","issue":{"url":"https://api.github.com/repos/dial-once/node-cache-manager-redis/issues/53","repository_url":"https://api.github.com/repos/dial-once/node-cache-manager-redis","labels_url":"https://api.github.com/repos/dial-once/node-cache-manager-redis/issues/53/labels{/name}","comments_url":"https://api.github.com/repos/dial-once/node-cache-manager-redis/issues/53/comments","events_url":"https://api.github.com/repos/dial-once/node-cache-manager-redis/issues/53/events","html_url":"https://github.com/dial-once/node-cache-manager-redis/issues/53","id":180498380,"number":53,"title":"Support for HSET/HGET feature","user":{"login":"kcauchy","id":1373951,"avatar_url":"https://avatars.githubusercontent.com/u/1373951?v=3","gravatar_id":"","url":"https://api.github.com/users/kcauchy","html_url":"https://github.com/kcauchy","followers_url":"https://api.github.com/users/kcauchy/followers","following_url":"https://api.github.com/users/kcauchy/following{/other_user}","gists_url":"https://api.github.com/users/kcauchy/gists{/gist_id}","starred_url":"https://api.github.com/users/kcauchy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kcauchy/subscriptions","organizations_url":"https://api.github.com/users/kcauchy/orgs","repos_url":"https://api.github.com/users/kcauchy/repos","events_url":"https://api.github.com/users/kcauchy/events{/privacy}","received_events_url":"https://api.github.com/users/kcauchy/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-10-02T06:36:03Z","updated_at":"2016-10-03T08:23:15Z","closed_at":null,"body":"To my knowledge, the HSET/HGET will have better performance when there are many keys share the prefix, just like this:\r\n\r\n```\r\ncache:user:session:1\r\ncache:user:session:2\r\n```\r\n\r\nMy suggestion is to store the everything after the last `/` symbol as the HSET/HGET key. For example, we should turn:\r\n\r\n```\r\nGET cache:user:session/1\r\n```\r\n\r\nto:\r\n\r\n```\r\nHGET cache:user:session 1\r\n```\r\n\r\nautomatically. \r\n\r\nIf you like this idea, I will push you a PR."},"comment":{"url":"https://api.github.com/repos/dial-once/node-cache-manager-redis/issues/comments/251051308","html_url":"https://github.com/dial-once/node-cache-manager-redis/issues/53#issuecomment-251051308","issue_url":"https://api.github.com/repos/dial-once/node-cache-manager-redis/issues/53","id":251051308,"user":{"login":"PuKoren","id":4202557,"avatar_url":"https://avatars.githubusercontent.com/u/4202557?v=3","gravatar_id":"","url":"https://api.github.com/users/PuKoren","html_url":"https://github.com/PuKoren","followers_url":"https://api.github.com/users/PuKoren/followers","following_url":"https://api.github.com/users/PuKoren/following{/other_user}","gists_url":"https://api.github.com/users/PuKoren/gists{/gist_id}","starred_url":"https://api.github.com/users/PuKoren/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PuKoren/subscriptions","organizations_url":"https://api.github.com/users/PuKoren/orgs","repos_url":"https://api.github.com/users/PuKoren/repos","events_url":"https://api.github.com/users/PuKoren/events{/privacy}","received_events_url":"https://api.github.com/users/PuKoren/received_events","type":"User","site_admin":false},"created_at":"2016-10-03T08:23:15Z","updated_at":"2016-10-03T08:23:15Z","body":"Agree, looks good!"}}
{"actor":{"display_login":"PuKoren"}}