{"action":"created","issue":{"url":"https://api.github.com/repos/stefanwille/crystal-redis/issues/14","repository_url":"https://api.github.com/repos/stefanwille/crystal-redis","labels_url":"https://api.github.com/repos/stefanwille/crystal-redis/issues/14/labels{/name}","comments_url":"https://api.github.com/repos/stefanwille/crystal-redis/issues/14/comments","events_url":"https://api.github.com/repos/stefanwille/crystal-redis/issues/14/events","html_url":"https://github.com/stefanwille/crystal-redis/issues/14","id":148064801,"number":14,"title":"hmset with an Int throws an ERR Protocol Error","user":{"login":"jmoriau","id":13310881,"avatar_url":"https://avatars.githubusercontent.com/u/13310881?v=3","gravatar_id":"","url":"https://api.github.com/users/jmoriau","html_url":"https://github.com/jmoriau","followers_url":"https://api.github.com/users/jmoriau/followers","following_url":"https://api.github.com/users/jmoriau/following{/other_user}","gists_url":"https://api.github.com/users/jmoriau/gists{/gist_id}","starred_url":"https://api.github.com/users/jmoriau/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmoriau/subscriptions","organizations_url":"https://api.github.com/users/jmoriau/orgs","repos_url":"https://api.github.com/users/jmoriau/repos","events_url":"https://api.github.com/users/jmoriau/events{/privacy}","received_events_url":"https://api.github.com/users/jmoriau/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-04-13T13:40:40Z","updated_at":"2016-04-17T10:58:13Z","closed_at":null,"body":"Hi,\r\n\r\nToday I stumbled upon an error:\r\n\r\n```ruby\r\nrequire \"redis\"\r\nredis = Redis.new\r\nputs redis.hmset(\"a_hash\", {field: 1})\r\n```\r\n\r\nwhich results in:\r\n\r\n```ruby\r\nRedisError: ERR Protocol error: expected '$', got ':' (Redis::Error)\r\n[4387255170] *CallStack::unwind:Array(Pointer(Void)) +82\r\n[4387255073] *CallStack#initialize<CallStack>:Array(Pointer(Void)) +17\r\n[4387255032] *CallStack::new:CallStack +40\r\n[4387376473] *Exception@Exception#initialize<Redis::Error, String>:CallStack +41\r\n[4387376404] *Redis::Error#initialize<Redis::Error, String>:CallStack +68\r\n[4387376308] *Redis::Error::new<String>:Redis::Error +100\r\n[4387356788] *Redis::Connection#receive<Redis::Connection>:(Array(Redis::RedisValue) | Int64 | String | Nil) +116\r\n[4387373410] *Redis::Strategy::SingleStatement#command<Redis::Strategy::SingleStatement, Array(Redis::RedisValue)>:(Array(Redis::RedisValue) | Int64 | String | Nil) +50\r\n[4387355921] *Redis#command<Redis, Array(Redis::RedisValue)>:alias.Redis::RedisValue +33\r\n[4387355829] *Redis@Redis::CommandExecution::ValueOriented#string_command<Redis, Array(Redis::RedisValue)>:String +37\r\n[4387355779] *Redis@Redis::Commands#hmset<Redis, String, Hash(Symbol, Int32)>:String +259\r\n[4387229503] __crystal_main +37199\r\n[4387237544] main +40\r\n```\r\n\r\nMy redis-server version is:\r\n\r\n```\r\nRedis server v=3.0.7 sha=00000000:0 malloc=jemalloc-3.6.0 bits=64 build=869e89100d5ea8c2\r\n```\r\n\r\nAm I doing something wrong ? (It works fine if I use a String for the value instead of an Int).\r\nAlso it works fine with `set`\r\n\r\n```ruby\r\nputs redis.set(\"an_int\", 1) #=> OK\r\n```\r\nWhat is the latest supported version ?\r\n\r\nBest regards"},"comment":{"url":"https://api.github.com/repos/stefanwille/crystal-redis/issues/comments/211000787","html_url":"https://github.com/stefanwille/crystal-redis/issues/14#issuecomment-211000787","issue_url":"https://api.github.com/repos/stefanwille/crystal-redis/issues/14","id":211000787,"user":{"login":"jmoriau","id":13310881,"avatar_url":"https://avatars.githubusercontent.com/u/13310881?v=3","gravatar_id":"","url":"https://api.github.com/users/jmoriau","html_url":"https://github.com/jmoriau","followers_url":"https://api.github.com/users/jmoriau/followers","following_url":"https://api.github.com/users/jmoriau/following{/other_user}","gists_url":"https://api.github.com/users/jmoriau/gists{/gist_id}","starred_url":"https://api.github.com/users/jmoriau/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmoriau/subscriptions","organizations_url":"https://api.github.com/users/jmoriau/orgs","repos_url":"https://api.github.com/users/jmoriau/repos","events_url":"https://api.github.com/users/jmoriau/events{/privacy}","received_events_url":"https://api.github.com/users/jmoriau/received_events","type":"User","site_admin":false},"created_at":"2016-04-17T10:58:13Z","updated_at":"2016-04-17T10:58:13Z","body":"Awesome :+1: "}}