{"action":"opened","number":95,"pull_request":{"url":"https://api.github.com/repos/balderdashy/sails-redis/pulls/95","id":62530651,"html_url":"https://github.com/balderdashy/sails-redis/pull/95","diff_url":"https://github.com/balderdashy/sails-redis/pull/95.diff","patch_url":"https://github.com/balderdashy/sails-redis/pull/95.patch","issue_url":"https://api.github.com/repos/balderdashy/sails-redis/issues/95","number":95,"state":"open","locked":false,"title":"Possibility to have custom keys' prefix","user":{"login":"andreabinda","id":16777883,"avatar_url":"https://avatars.githubusercontent.com/u/16777883?v=3","gravatar_id":"","url":"https://api.github.com/users/andreabinda","html_url":"https://github.com/andreabinda","followers_url":"https://api.github.com/users/andreabinda/followers","following_url":"https://api.github.com/users/andreabinda/following{/other_user}","gists_url":"https://api.github.com/users/andreabinda/gists{/gist_id}","starred_url":"https://api.github.com/users/andreabinda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andreabinda/subscriptions","organizations_url":"https://api.github.com/users/andreabinda/orgs","repos_url":"https://api.github.com/users/andreabinda/repos","events_url":"https://api.github.com/users/andreabinda/events{/privacy}","received_events_url":"https://api.github.com/users/andreabinda/received_events","type":"User","site_admin":false},"body":"If two apps uses the same redis db there could be a key confict \r\nEg:\r\n\r\n```\r\n app1 creates a new user with id:7 (key: waterline:user:id:7)\r\n app2 lists all users (keys: \"waterline:user:*\")\r\n app2 will get information about user:if:7 of app 1\r\n```\r\nGiving the possibility to set a custom prefix would avoid such conflict by, in example, declaring the app name in the fileld 'key_prefix'\r\nEg:\r\n```\r\n...\r\nconnections:{\r\n        redis:{\r\n            adapter:'redis',\r\n            host:\"localhost\",\r\n            key_prefix:\"com.example.myappid\"\r\n            }\r\n    },\r\n...\r\n```\r\n\r\n","created_at":"2016-03-11T11:29:04Z","updated_at":"2016-03-11T11:29:04Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/balderdashy/sails-redis/pulls/95/commits","review_comments_url":"https://api.github.com/repos/balderdashy/sails-redis/pulls/95/comments","review_comment_url":"https://api.github.com/repos/balderdashy/sails-redis/pulls/comments{/number}","comments_url":"https://api.github.com/repos/balderdashy/sails-redis/issues/95/comments","statuses_url":"https://api.github.com/repos/balderdashy/sails-redis/statuses/dc03c2a5e7d8b53ab2f7df0ee1d29c10cb49705a","head":{"label":"andreabinda:master","ref":"master","sha":"dc03c2a5e7d8b53ab2f7df0ee1d29c10cb49705a","user":{"login":"andreabinda","id":16777883,"avatar_url":"https://avatars.githubusercontent.com/u/16777883?v=3","gravatar_id":"","url":"https://api.github.com/users/andreabinda","html_url":"https://github.com/andreabinda","followers_url":"https://api.github.com/users/andreabinda/followers","following_url":"https://api.github.com/users/andreabinda/following{/other_user}","gists_url":"https://api.github.com/users/andreabinda/gists{/gist_id}","starred_url":"https://api.github.com/users/andreabinda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andreabinda/subscriptions","organizations_url":"https://api.github.com/users/andreabinda/orgs","repos_url":"https://api.github.com/users/andreabinda/repos","events_url":"https://api.github.com/users/andreabinda/events{/privacy}","received_events_url":"https://api.github.com/users/andreabinda/received_events","type":"User","site_admin":false},"repo":{"id":53656191,"name":"sails-redis","full_name":"andreabinda/sails-redis","owner":{"login":"andreabinda","id":16777883,"avatar_url":"https://avatars.githubusercontent.com/u/16777883?v=3","gravatar_id":"","url":"https://api.github.com/users/andreabinda","html_url":"https://github.com/andreabinda","followers_url":"https://api.github.com/users/andreabinda/followers","following_url":"https://api.github.com/users/andreabinda/following{/other_user}","gists_url":"https://api.github.com/users/andreabinda/gists{/gist_id}","starred_url":"https://api.github.com/users/andreabinda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andreabinda/subscriptions","organizations_url":"https://api.github.com/users/andreabinda/orgs","repos_url":"https://api.github.com/users/andreabinda/repos","events_url":"https://api.github.com/users/andreabinda/events{/privacy}","received_events_url":"https://api.github.com/users/andreabinda/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/andreabinda/sails-redis","description":"Redis adapter for Sails.js","fork":true,"url":"https://api.github.com/repos/andreabinda/sails-redis","forks_url":"https://api.github.com/repos/andreabinda/sails-redis/forks","keys_url":"https://api.github.com/repos/andreabinda/sails-redis/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andreabinda/sails-redis/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andreabinda/sails-redis/teams","hooks_url":"https://api.github.com/repos/andreabinda/sails-redis/hooks","issue_events_url":"https://api.github.com/repos/andreabinda/sails-redis/issues/events{/number}","events_url":"https://api.github.com/repos/andreabinda/sails-redis/events","assignees_url":"https://api.github.com/repos/andreabinda/sails-redis/assignees{/user}","branches_url":"https://api.github.com/repos/andreabinda/sails-redis/branches{/branch}","tags_url":"https://api.github.com/repos/andreabinda/sails-redis/tags","blobs_url":"https://api.github.com/repos/andreabinda/sails-redis/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andreabinda/sails-redis/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andreabinda/sails-redis/git/refs{/sha}","trees_url":"https://api.github.com/repos/andreabinda/sails-redis/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andreabinda/sails-redis/statuses/{sha}","languages_url":"https://api.github.com/repos/andreabinda/sails-redis/languages","stargazers_url":"https://api.github.com/repos/andreabinda/sails-redis/stargazers","contributors_url":"https://api.github.com/repos/andreabinda/sails-redis/contributors","subscribers_url":"https://api.github.com/repos/andreabinda/sails-redis/subscribers","subscription_url":"https://api.github.com/repos/andreabinda/sails-redis/subscription","commits_url":"https://api.github.com/repos/andreabinda/sails-redis/commits{/sha}","git_commits_url":"https://api.github.com/repos/andreabinda/sails-redis/git/commits{/sha}","comments_url":"https://api.github.com/repos/andreabinda/sails-redis/comments{/number}","issue_comment_url":"https://api.github.com/repos/andreabinda/sails-redis/issues/comments{/number}","contents_url":"https://api.github.com/repos/andreabinda/sails-redis/contents/{+path}","compare_url":"https://api.github.com/repos/andreabinda/sails-redis/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andreabinda/sails-redis/merges","archive_url":"https://api.github.com/repos/andreabinda/sails-redis/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andreabinda/sails-redis/downloads","issues_url":"https://api.github.com/repos/andreabinda/sails-redis/issues{/number}","pulls_url":"https://api.github.com/repos/andreabinda/sails-redis/pulls{/number}","milestones_url":"https://api.github.com/repos/andreabinda/sails-redis/milestones{/number}","notifications_url":"https://api.github.com/repos/andreabinda/sails-redis/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andreabinda/sails-redis/labels{/name}","releases_url":"https://api.github.com/repos/andreabinda/sails-redis/releases{/id}","deployments_url":"https://api.github.com/repos/andreabinda/sails-redis/deployments","created_at":"2016-03-11T09:36:45Z","updated_at":"2016-03-11T09:36:46Z","pushed_at":"2016-03-11T10:57:19Z","git_url":"git://github.com/andreabinda/sails-redis.git","ssh_url":"git@github.com:andreabinda/sails-redis.git","clone_url":"https://github.com/andreabinda/sails-redis.git","svn_url":"https://github.com/andreabinda/sails-redis","homepage":null,"size":201,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"balderdashy:master","ref":"master","sha":"5229990bd18bf25527cfb520d592d4840ee76f9d","user":{"login":"balderdashy","id":1445252,"avatar_url":"https://avatars.githubusercontent.com/u/1445252?v=3","gravatar_id":"","url":"https://api.github.com/users/balderdashy","html_url":"https://github.com/balderdashy","followers_url":"https://api.github.com/users/balderdashy/followers","following_url":"https://api.github.com/users/balderdashy/following{/other_user}","gists_url":"https://api.github.com/users/balderdashy/gists{/gist_id}","starred_url":"https://api.github.com/users/balderdashy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/balderdashy/subscriptions","organizations_url":"https://api.github.com/users/balderdashy/orgs","repos_url":"https://api.github.com/users/balderdashy/repos","events_url":"https://api.github.com/users/balderdashy/events{/privacy}","received_events_url":"https://api.github.com/users/balderdashy/received_events","type":"Organization","site_admin":false},"repo":{"id":8528976,"name":"sails-redis","full_name":"balderdashy/sails-redis","owner":{"login":"balderdashy","id":1445252,"avatar_url":"https://avatars.githubusercontent.com/u/1445252?v=3","gravatar_id":"","url":"https://api.github.com/users/balderdashy","html_url":"https://github.com/balderdashy","followers_url":"https://api.github.com/users/balderdashy/followers","following_url":"https://api.github.com/users/balderdashy/following{/other_user}","gists_url":"https://api.github.com/users/balderdashy/gists{/gist_id}","starred_url":"https://api.github.com/users/balderdashy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/balderdashy/subscriptions","organizations_url":"https://api.github.com/users/balderdashy/orgs","repos_url":"https://api.github.com/users/balderdashy/repos","events_url":"https://api.github.com/users/balderdashy/events{/privacy}","received_events_url":"https://api.github.com/users/balderdashy/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/balderdashy/sails-redis","description":"Redis adapter for Sails.js","fork":false,"url":"https://api.github.com/repos/balderdashy/sails-redis","forks_url":"https://api.github.com/repos/balderdashy/sails-redis/forks","keys_url":"https://api.github.com/repos/balderdashy/sails-redis/keys{/key_id}","collaborators_url":"https://api.github.com/repos/balderdashy/sails-redis/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/balderdashy/sails-redis/teams","hooks_url":"https://api.github.com/repos/balderdashy/sails-redis/hooks","issue_events_url":"https://api.github.com/repos/balderdashy/sails-redis/issues/events{/number}","events_url":"https://api.github.com/repos/balderdashy/sails-redis/events","assignees_url":"https://api.github.com/repos/balderdashy/sails-redis/assignees{/user}","branches_url":"https://api.github.com/repos/balderdashy/sails-redis/branches{/branch}","tags_url":"https://api.github.com/repos/balderdashy/sails-redis/tags","blobs_url":"https://api.github.com/repos/balderdashy/sails-redis/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/balderdashy/sails-redis/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/balderdashy/sails-redis/git/refs{/sha}","trees_url":"https://api.github.com/repos/balderdashy/sails-redis/git/trees{/sha}","statuses_url":"https://api.github.com/repos/balderdashy/sails-redis/statuses/{sha}","languages_url":"https://api.github.com/repos/balderdashy/sails-redis/languages","stargazers_url":"https://api.github.com/repos/balderdashy/sails-redis/stargazers","contributors_url":"https://api.github.com/repos/balderdashy/sails-redis/contributors","subscribers_url":"https://api.github.com/repos/balderdashy/sails-redis/subscribers","subscription_url":"https://api.github.com/repos/balderdashy/sails-redis/subscription","commits_url":"https://api.github.com/repos/balderdashy/sails-redis/commits{/sha}","git_commits_url":"https://api.github.com/repos/balderdashy/sails-redis/git/commits{/sha}","comments_url":"https://api.github.com/repos/balderdashy/sails-redis/comments{/number}","issue_comment_url":"https://api.github.com/repos/balderdashy/sails-redis/issues/comments{/number}","contents_url":"https://api.github.com/repos/balderdashy/sails-redis/contents/{+path}","compare_url":"https://api.github.com/repos/balderdashy/sails-redis/compare/{base}...{head}","merges_url":"https://api.github.com/repos/balderdashy/sails-redis/merges","archive_url":"https://api.github.com/repos/balderdashy/sails-redis/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/balderdashy/sails-redis/downloads","issues_url":"https://api.github.com/repos/balderdashy/sails-redis/issues{/number}","pulls_url":"https://api.github.com/repos/balderdashy/sails-redis/pulls{/number}","milestones_url":"https://api.github.com/repos/balderdashy/sails-redis/milestones{/number}","notifications_url":"https://api.github.com/repos/balderdashy/sails-redis/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/balderdashy/sails-redis/labels{/name}","releases_url":"https://api.github.com/repos/balderdashy/sails-redis/releases{/id}","deployments_url":"https://api.github.com/repos/balderdashy/sails-redis/deployments","created_at":"2013-03-02T23:42:54Z","updated_at":"2016-02-26T21:26:07Z","pushed_at":"2016-02-28T04:35:30Z","git_url":"git://github.com/balderdashy/sails-redis.git","ssh_url":"git@github.com:balderdashy/sails-redis.git","clone_url":"https://github.com/balderdashy/sails-redis.git","svn_url":"https://github.com/balderdashy/sails-redis","homepage":null,"size":226,"stargazers_count":86,"watchers_count":86,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":67,"mirror_url":null,"open_issues_count":11,"forks":67,"open_issues":11,"watchers":86,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/balderdashy/sails-redis/pulls/95"},"html":{"href":"https://github.com/balderdashy/sails-redis/pull/95"},"issue":{"href":"https://api.github.com/repos/balderdashy/sails-redis/issues/95"},"comments":{"href":"https://api.github.com/repos/balderdashy/sails-redis/issues/95/comments"},"review_comments":{"href":"https://api.github.com/repos/balderdashy/sails-redis/pulls/95/comments"},"review_comment":{"href":"https://api.github.com/repos/balderdashy/sails-redis/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/balderdashy/sails-redis/pulls/95/commits"},"statuses":{"href":"https://api.github.com/repos/balderdashy/sails-redis/statuses/dc03c2a5e7d8b53ab2f7df0ee1d29c10cb49705a"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":6,"additions":14,"deletions":14,"changed_files":4}}