{"action":"created","issue":{"url":"https://api.github.com/repos/gomodule/redigo/issues/341","repository_url":"https://api.github.com/repos/gomodule/redigo","labels_url":"https://api.github.com/repos/gomodule/redigo/issues/341/labels{/name}","comments_url":"https://api.github.com/repos/gomodule/redigo/issues/341/comments","events_url":"https://api.github.com/repos/gomodule/redigo/issues/341/events","html_url":"https://github.com/gomodule/redigo/issues/341","id":325761520,"number":341,"title":"Inconsistency with documented redis behavior","user":{"login":"darethas","id":1624830,"avatar_url":"https://avatars1.githubusercontent.com/u/1624830?v=4","gravatar_id":"","url":"https://api.github.com/users/darethas","html_url":"https://github.com/darethas","followers_url":"https://api.github.com/users/darethas/followers","following_url":"https://api.github.com/users/darethas/following{/other_user}","gists_url":"https://api.github.com/users/darethas/gists{/gist_id}","starred_url":"https://api.github.com/users/darethas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/darethas/subscriptions","organizations_url":"https://api.github.com/users/darethas/orgs","repos_url":"https://api.github.com/users/darethas/repos","events_url":"https://api.github.com/users/darethas/events{/privacy}","received_events_url":"https://api.github.com/users/darethas/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-05-23T15:33:46Z","updated_at":"2018-05-23T20:51:55Z","closed_at":null,"author_association":"NONE","body":"Hello, I noticed with the SPOP command, redis documentation states nil should be returned when the key does not exist, however `Do(\"SPOP\", nonexistantkey, 1)` returns an empty slice of `[]interface{}` values. Is there a piece of the puzzle I am missing here?\r\n\r\nI am using the latest version of redigo on go 1.10.  Thank you."},"comment":{"url":"https://api.github.com/repos/gomodule/redigo/issues/comments/391492169","html_url":"https://github.com/gomodule/redigo/issues/341#issuecomment-391492169","issue_url":"https://api.github.com/repos/gomodule/redigo/issues/341","id":391492169,"user":{"login":"nilslice","id":7517515,"avatar_url":"https://avatars0.githubusercontent.com/u/7517515?v=4","gravatar_id":"","url":"https://api.github.com/users/nilslice","html_url":"https://github.com/nilslice","followers_url":"https://api.github.com/users/nilslice/followers","following_url":"https://api.github.com/users/nilslice/following{/other_user}","gists_url":"https://api.github.com/users/nilslice/gists{/gist_id}","starred_url":"https://api.github.com/users/nilslice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nilslice/subscriptions","organizations_url":"https://api.github.com/users/nilslice/orgs","repos_url":"https://api.github.com/users/nilslice/repos","events_url":"https://api.github.com/users/nilslice/events{/privacy}","received_events_url":"https://api.github.com/users/nilslice/received_events","type":"User","site_admin":false},"created_at":"2018-05-23T20:51:55Z","updated_at":"2018-05-23T20:51:55Z","author_association":"NONE","body":"Ok, I understand now what you mean. As per the source,`nil` _is_ returned when redigo can easily understand no reply should be returned (i.e. in the case of a failure, or no command sent). See: https://github.com/gomodule/redigo/blob/master/redis/conn.go#L619\r\n\r\nHowever, in order to determine that there are no values found is something that would require redigo to optimistically scan the values into your type. The `interface{}` type returned implies that the caller (you) should scan the reply into some type you're expecting and check the length if it is a slice. I could be missing a step there though re: the thinking behind this (I'm not an author of redigo)"}}
{"actor":{"display_login":"nilslice"}}