{"action":"created","issue":{"url":"https://api.github.com/repos/leandromoreira/redlock-rb/issues/14","labels_url":"https://api.github.com/repos/leandromoreira/redlock-rb/issues/14/labels{/name}","comments_url":"https://api.github.com/repos/leandromoreira/redlock-rb/issues/14/comments","events_url":"https://api.github.com/repos/leandromoreira/redlock-rb/issues/14/events","html_url":"https://github.com/leandromoreira/redlock-rb/issues/14","id":94835700,"number":14,"title":"It Do not lock the resource nor it stores anything to Redis","user":{"login":"lellisga","id":210771,"avatar_url":"https://avatars.githubusercontent.com/u/210771?v=3","gravatar_id":"","url":"https://api.github.com/users/lellisga","html_url":"https://github.com/lellisga","followers_url":"https://api.github.com/users/lellisga/followers","following_url":"https://api.github.com/users/lellisga/following{/other_user}","gists_url":"https://api.github.com/users/lellisga/gists{/gist_id}","starred_url":"https://api.github.com/users/lellisga/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lellisga/subscriptions","organizations_url":"https://api.github.com/users/lellisga/orgs","repos_url":"https://api.github.com/users/lellisga/repos","events_url":"https://api.github.com/users/lellisga/events{/privacy}","received_events_url":"https://api.github.com/users/lellisga/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/leandromoreira/redlock-rb/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2015-07-13T23:40:04Z","updated_at":"2015-07-14T03:52:56Z","closed_at":null,"body":"1. I'm opening 2 rails consoles that are using the same redis instance\r\n2. I run redis-cli and run the monitor command\r\n\r\nIt doesn't seems to lock, and it doesn't seems to store into redis. I'm I missing something?\r\n\r\n# rails console #1 \r\n\r\n    rl = Redlock::Client.new([ \"redis://127.0.0.1:6397\" ])\r\n    me = rl.lock(\"lellisga\", 2000000)\r\n    #=> {:validity=>1979998, :resource=>\"lellisga\", :value=>\"1b5e0a18-638a-4a45-9be9-487d401acf00\"}\r\n\r\n# rails console #2\r\n    rl = Redlock::Client.new([ \"redis://127.0.0.1:6397\" ])\r\n    me = rl.lock(\"lellisga\", 2000000)\r\n    #=> {:validity=>1979998, :resource=>\"lellisga\", :value=>\"db238b28-d82a-47e6-b404-1dd72eb714ff\"}\r\n    # I was expecting this to return `false`\r\n\r\n# redis-cli monitor\r\n    redis 127.0.0.1:6379> MONITOR\r\n    OK\r\n    # nothing happens"},"comment":{"url":"https://api.github.com/repos/leandromoreira/redlock-rb/issues/comments/121126020","html_url":"https://github.com/leandromoreira/redlock-rb/issues/14#issuecomment-121126020","issue_url":"https://api.github.com/repos/leandromoreira/redlock-rb/issues/14","id":121126020,"user":{"login":"leandromoreira","id":55913,"avatar_url":"https://avatars.githubusercontent.com/u/55913?v=3","gravatar_id":"","url":"https://api.github.com/users/leandromoreira","html_url":"https://github.com/leandromoreira","followers_url":"https://api.github.com/users/leandromoreira/followers","following_url":"https://api.github.com/users/leandromoreira/following{/other_user}","gists_url":"https://api.github.com/users/leandromoreira/gists{/gist_id}","starred_url":"https://api.github.com/users/leandromoreira/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leandromoreira/subscriptions","organizations_url":"https://api.github.com/users/leandromoreira/orgs","repos_url":"https://api.github.com/users/leandromoreira/repos","events_url":"https://api.github.com/users/leandromoreira/events{/privacy}","received_events_url":"https://api.github.com/users/leandromoreira/received_events","type":"User","site_admin":false},"created_at":"2015-07-14T03:52:56Z","updated_at":"2015-07-14T03:52:56Z","body":"@lellisga it doesn't make any sense :disappointed:  , it's too late in here but I'll try to double check this out."}}