{"action":"closed","issue":{"url":"https://api.github.com/repos/YugaByte/yugabyte-db/issues/88","repository_url":"https://api.github.com/repos/YugaByte/yugabyte-db","labels_url":"https://api.github.com/repos/YugaByte/yugabyte-db/issues/88/labels{/name}","comments_url":"https://api.github.com/repos/YugaByte/yugabyte-db/issues/88/comments","events_url":"https://api.github.com/repos/YugaByte/yugabyte-db/issues/88/events","html_url":"https://github.com/YugaByte/yugabyte-db/issues/88","id":303272598,"number":88,"title":"Redis Set options NX and XX return errors instead of null values","user":{"login":"hectorgcr","id":20052555,"avatar_url":"https://avatars1.githubusercontent.com/u/20052555?v=4","gravatar_id":"","url":"https://api.github.com/users/hectorgcr","html_url":"https://github.com/hectorgcr","followers_url":"https://api.github.com/users/hectorgcr/followers","following_url":"https://api.github.com/users/hectorgcr/following{/other_user}","gists_url":"https://api.github.com/users/hectorgcr/gists{/gist_id}","starred_url":"https://api.github.com/users/hectorgcr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hectorgcr/subscriptions","organizations_url":"https://api.github.com/users/hectorgcr/orgs","repos_url":"https://api.github.com/users/hectorgcr/repos","events_url":"https://api.github.com/users/hectorgcr/events{/privacy}","received_events_url":"https://api.github.com/users/hectorgcr/received_events","type":"User","site_admin":false},"labels":[{"id":711841622,"url":"https://api.github.com/repos/YugaByte/yugabyte-db/labels/bug","name":"bug","color":"ee0701","default":true}],"state":"closed","locked":false,"assignee":{"login":"hectorgcr","id":20052555,"avatar_url":"https://avatars1.githubusercontent.com/u/20052555?v=4","gravatar_id":"","url":"https://api.github.com/users/hectorgcr","html_url":"https://github.com/hectorgcr","followers_url":"https://api.github.com/users/hectorgcr/followers","following_url":"https://api.github.com/users/hectorgcr/following{/other_user}","gists_url":"https://api.github.com/users/hectorgcr/gists{/gist_id}","starred_url":"https://api.github.com/users/hectorgcr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hectorgcr/subscriptions","organizations_url":"https://api.github.com/users/hectorgcr/orgs","repos_url":"https://api.github.com/users/hectorgcr/repos","events_url":"https://api.github.com/users/hectorgcr/events{/privacy}","received_events_url":"https://api.github.com/users/hectorgcr/received_events","type":"User","site_admin":false},"assignees":[{"login":"hectorgcr","id":20052555,"avatar_url":"https://avatars1.githubusercontent.com/u/20052555?v=4","gravatar_id":"","url":"https://api.github.com/users/hectorgcr","html_url":"https://github.com/hectorgcr","followers_url":"https://api.github.com/users/hectorgcr/followers","following_url":"https://api.github.com/users/hectorgcr/following{/other_user}","gists_url":"https://api.github.com/users/hectorgcr/gists{/gist_id}","starred_url":"https://api.github.com/users/hectorgcr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hectorgcr/subscriptions","organizations_url":"https://api.github.com/users/hectorgcr/orgs","repos_url":"https://api.github.com/users/hectorgcr/repos","events_url":"https://api.github.com/users/hectorgcr/events{/privacy}","received_events_url":"https://api.github.com/users/hectorgcr/received_events","type":"User","site_admin":false}],"milestone":null,"comments":0,"created_at":"2018-03-07T21:49:49Z","updated_at":"2018-03-09T19:41:26Z","closed_at":"2018-03-09T19:41:26Z","author_association":"CONTRIBUTOR","body":"Currently when setting a key with the NX option, and the key already exists, we return an error instead of a null reply. Similarly, when setting a nonexistent key with the XX option, we return an error instead of a null reply.\r\n\r\nYB output:\r\n```\r\n127.0.0.1:6379> set k 1 nx\r\nOK\r\n127.0.0.1:6379> set k 1 nx\r\n(error) Unknown error\r\n```\r\n\r\nRedis output:\r\n```\r\n127.0.0.1:13412> set k 1 nx\r\nOK\r\n127.0.0.1:13412> set k 1 nx\r\n(nil)\r\n```\r\n\r\n"}}
{"actor":{"display_login":"hectorgcr"}}