{"action":"opened","issue":{"url":"https://api.github.com/repos/phpredis/phpredis/issues/791","repository_url":"https://api.github.com/repos/phpredis/phpredis","labels_url":"https://api.github.com/repos/phpredis/phpredis/issues/791/labels{/name}","comments_url":"https://api.github.com/repos/phpredis/phpredis/issues/791/comments","events_url":"https://api.github.com/repos/phpredis/phpredis/issues/791/events","html_url":"https://github.com/phpredis/phpredis/issues/791","id":148963261,"number":791,"title":"storing and retrieving long integer in hash ","user":{"login":"eranhazout","id":7934509,"avatar_url":"https://avatars.githubusercontent.com/u/7934509?v=3","gravatar_id":"","url":"https://api.github.com/users/eranhazout","html_url":"https://github.com/eranhazout","followers_url":"https://api.github.com/users/eranhazout/followers","following_url":"https://api.github.com/users/eranhazout/following{/other_user}","gists_url":"https://api.github.com/users/eranhazout/gists{/gist_id}","starred_url":"https://api.github.com/users/eranhazout/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eranhazout/subscriptions","organizations_url":"https://api.github.com/users/eranhazout/orgs","repos_url":"https://api.github.com/users/eranhazout/repos","events_url":"https://api.github.com/users/eranhazout/events{/privacy}","received_events_url":"https://api.github.com/users/eranhazout/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-04-17T15:24:46Z","updated_at":"2016-04-17T15:24:46Z","closed_at":null,"body":"When storing a long integer as hash the only way to retrieve it is by getting the hash as a string. \r\notherwise it will return false.\r\n\r\nTry like this: \r\nset hash\r\n`hmset('key',array(10205865674343922 => 'some_value'))`\r\nand then try to get it with\r\n`hmget('key',array(10205865674343922))`\r\n\r\nThe response would be: \r\n`array(10205865674343922=>false)`\r\ninstead of \r\n`array(10205865674343922=>'some_value')`\r\n\r\nIt looks like a bug to me ;)"}}