{"action":"created","issue":{"url":"https://api.github.com/repos/fzzy/radix/issues/67","labels_url":"https://api.github.com/repos/fzzy/radix/issues/67/labels{/name}","comments_url":"https://api.github.com/repos/fzzy/radix/issues/67/comments","events_url":"https://api.github.com/repos/fzzy/radix/issues/67/events","html_url":"https://github.com/fzzy/radix/issues/67","id":93481736,"number":67,"title":"Cannot set expiration with SET command","user":{"login":"alexcesaro","id":832479,"avatar_url":"https://avatars.githubusercontent.com/u/832479?v=3","gravatar_id":"","url":"https://api.github.com/users/alexcesaro","html_url":"https://github.com/alexcesaro","followers_url":"https://api.github.com/users/alexcesaro/followers","following_url":"https://api.github.com/users/alexcesaro/following{/other_user}","gists_url":"https://api.github.com/users/alexcesaro/gists{/gist_id}","starred_url":"https://api.github.com/users/alexcesaro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexcesaro/subscriptions","organizations_url":"https://api.github.com/users/alexcesaro/orgs","repos_url":"https://api.github.com/users/alexcesaro/repos","events_url":"https://api.github.com/users/alexcesaro/events{/privacy}","received_events_url":"https://api.github.com/users/alexcesaro/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-07T09:18:47Z","updated_at":"2015-07-07T09:21:09Z","closed_at":null,"body":"```go\r\npackage main\r\n\r\nimport (\r\n\t\"fmt\"\r\n\r\n\t\"github.com/fzzy/radix/redis\"\r\n)\r\n\r\nfunc main() {\r\n\tc, err := redis.Dial(\"tcp\", \":6379\")\r\n\tif err != nil {\r\n\t\tpanic(err)\r\n\t}\r\n\tr := c.Cmd(\"SET\", \"a\", \"a\", \"EX 3600\")\r\n\tfmt.Println(r.Err)\r\n}\r\n```\r\nOn my machine, this program outputs: `ERR syntax error`. While it works fine if I remove the \"EX 3600\" parameter.\r\n\r\nMy Redis version:\r\n```\r\n$ redis-server --version\r\nRedis server v=2.8.4 sha=00000000:0 malloc=jemalloc-3.4.1 bits=64 build=a44a05d76f06a5d9\r\n$ redis-cli\r\n127.0.0.1:6379> SET a a EX 3600\r\nOK\r\n```"},"comment":{"url":"https://api.github.com/repos/fzzy/radix/issues/comments/119134840","html_url":"https://github.com/fzzy/radix/issues/67#issuecomment-119134840","issue_url":"https://api.github.com/repos/fzzy/radix/issues/67","id":119134840,"user":{"login":"alexcesaro","id":832479,"avatar_url":"https://avatars.githubusercontent.com/u/832479?v=3","gravatar_id":"","url":"https://api.github.com/users/alexcesaro","html_url":"https://github.com/alexcesaro","followers_url":"https://api.github.com/users/alexcesaro/followers","following_url":"https://api.github.com/users/alexcesaro/following{/other_user}","gists_url":"https://api.github.com/users/alexcesaro/gists{/gist_id}","starred_url":"https://api.github.com/users/alexcesaro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexcesaro/subscriptions","organizations_url":"https://api.github.com/users/alexcesaro/orgs","repos_url":"https://api.github.com/users/alexcesaro/repos","events_url":"https://api.github.com/users/alexcesaro/events{/privacy}","received_events_url":"https://api.github.com/users/alexcesaro/received_events","type":"User","site_admin":false},"created_at":"2015-07-07T09:21:09Z","updated_at":"2015-07-07T09:21:09Z","body":"I just found that it works when I use `c.Cmd(\"SET\", \"a\", \"a\", \"EX\", \"3600\")`. Is it intended?"}}