{"action":"created","issue":{"url":"https://api.github.com/repos/redis-store/redis-store/issues/253","labels_url":"https://api.github.com/repos/redis-store/redis-store/issues/253/labels{/name}","comments_url":"https://api.github.com/repos/redis-store/redis-store/issues/253/comments","events_url":"https://api.github.com/repos/redis-store/redis-store/issues/253/events","html_url":"https://github.com/redis-store/redis-store/issues/253","id":100013023,"number":253,"title":"cache#increment fails if key exists and has been pre-configured to 0 ","user":{"login":"stevegoobermanhill","id":9270211,"avatar_url":"https://avatars.githubusercontent.com/u/9270211?v=3","gravatar_id":"","url":"https://api.github.com/users/stevegoobermanhill","html_url":"https://github.com/stevegoobermanhill","followers_url":"https://api.github.com/users/stevegoobermanhill/followers","following_url":"https://api.github.com/users/stevegoobermanhill/following{/other_user}","gists_url":"https://api.github.com/users/stevegoobermanhill/gists{/gist_id}","starred_url":"https://api.github.com/users/stevegoobermanhill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stevegoobermanhill/subscriptions","organizations_url":"https://api.github.com/users/stevegoobermanhill/orgs","repos_url":"https://api.github.com/users/stevegoobermanhill/repos","events_url":"https://api.github.com/users/stevegoobermanhill/events{/privacy}","received_events_url":"https://api.github.com/users/stevegoobermanhill/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/redis-store/redis-store/labels/bug","name":"bug","color":"ff0000"},{"url":"https://api.github.com/repos/redis-store/redis-store/labels/question","name":"question","color":"DDDDDD"}],"state":"open","locked":false,"assignee":{"login":"krainboltgreene","id":334809,"avatar_url":"https://avatars.githubusercontent.com/u/334809?v=3","gravatar_id":"","url":"https://api.github.com/users/krainboltgreene","html_url":"https://github.com/krainboltgreene","followers_url":"https://api.github.com/users/krainboltgreene/followers","following_url":"https://api.github.com/users/krainboltgreene/following{/other_user}","gists_url":"https://api.github.com/users/krainboltgreene/gists{/gist_id}","starred_url":"https://api.github.com/users/krainboltgreene/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/krainboltgreene/subscriptions","organizations_url":"https://api.github.com/users/krainboltgreene/orgs","repos_url":"https://api.github.com/users/krainboltgreene/repos","events_url":"https://api.github.com/users/krainboltgreene/events{/privacy}","received_events_url":"https://api.github.com/users/krainboltgreene/received_events","type":"User","site_admin":false},"milestone":null,"comments":3,"created_at":"2015-08-10T08:58:52Z","updated_at":"2016-01-29T20:36:53Z","closed_at":null,"body":"Hi,\r\nI'm running Rails 4.1.6 on Ruby 2.2.1p85 with Redis 3.0.3\r\n\r\nIt looks like the underlying Redis is failing and throwing an error if I try and increment a counter in the store that has been pre-initialized to 0.\r\n\r\n[1] pry(main)> Rails.cache.increment('foo')\r\n=> 1\r\n[2] pry(main)> Rails.cache.write('bar',0)\r\n=> \"OK\"\r\n[3] pry(main)> Rails.cache.increment('bar')\r\nRedis::CommandError: ERR value is not an integer or out of range\r\nfrom /home/admin2/.rvm/gems/ruby-2.2.1/gems/redis-3.2.1/lib/redis/client.rb:113:in `call'\r\n[4] pry(main)> \r\n\r\nIs this a known behaviour ?\r\n\r\nKind regards\r\n\r\nSteve\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/redis-store/redis-store/issues/comments/176957426","html_url":"https://github.com/redis-store/redis-store/issues/253#issuecomment-176957426","issue_url":"https://api.github.com/repos/redis-store/redis-store/issues/253","id":176957426,"user":{"login":"hmcfletch","id":32283,"avatar_url":"https://avatars.githubusercontent.com/u/32283?v=3","gravatar_id":"","url":"https://api.github.com/users/hmcfletch","html_url":"https://github.com/hmcfletch","followers_url":"https://api.github.com/users/hmcfletch/followers","following_url":"https://api.github.com/users/hmcfletch/following{/other_user}","gists_url":"https://api.github.com/users/hmcfletch/gists{/gist_id}","starred_url":"https://api.github.com/users/hmcfletch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hmcfletch/subscriptions","organizations_url":"https://api.github.com/users/hmcfletch/orgs","repos_url":"https://api.github.com/users/hmcfletch/repos","events_url":"https://api.github.com/users/hmcfletch/events{/privacy}","received_events_url":"https://api.github.com/users/hmcfletch/received_events","type":"User","site_admin":false},"created_at":"2016-01-29T20:36:53Z","updated_at":"2016-01-29T20:36:53Z","body":"Looks like #231 has something to do with it as well"}}