{"action":"created","issue":{"url":"https://api.github.com/repos/mp911de/lettuce/issues/150","labels_url":"https://api.github.com/repos/mp911de/lettuce/issues/150/labels{/name}","comments_url":"https://api.github.com/repos/mp911de/lettuce/issues/150/comments","events_url":"https://api.github.com/repos/mp911de/lettuce/issues/150/events","html_url":"https://github.com/mp911de/lettuce/issues/150","id":115192340,"number":150,"title":"Implement distributed locks","user":{"login":"longkerdandy","id":537466,"avatar_url":"https://avatars.githubusercontent.com/u/537466?v=3","gravatar_id":"","url":"https://api.github.com/users/longkerdandy","html_url":"https://github.com/longkerdandy","followers_url":"https://api.github.com/users/longkerdandy/followers","following_url":"https://api.github.com/users/longkerdandy/following{/other_user}","gists_url":"https://api.github.com/users/longkerdandy/gists{/gist_id}","starred_url":"https://api.github.com/users/longkerdandy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/longkerdandy/subscriptions","organizations_url":"https://api.github.com/users/longkerdandy/orgs","repos_url":"https://api.github.com/users/longkerdandy/repos","events_url":"https://api.github.com/users/longkerdandy/events{/privacy}","received_events_url":"https://api.github.com/users/longkerdandy/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-05T01:56:52Z","updated_at":"2015-11-05T06:47:58Z","closed_at":null,"body":"Redis provide a algorithm called Redlock, it is little complicated, better lettuce can implement it.\r\nOr I have to use another redis client to handle the lock.\r\nFrom offical site: http://redis.io/topics/distlock"},"comment":{"url":"https://api.github.com/repos/mp911de/lettuce/issues/comments/153971937","html_url":"https://github.com/mp911de/lettuce/issues/150#issuecomment-153971937","issue_url":"https://api.github.com/repos/mp911de/lettuce/issues/150","id":153971937,"user":{"login":"mp911de","id":1035015,"avatar_url":"https://avatars.githubusercontent.com/u/1035015?v=3","gravatar_id":"","url":"https://api.github.com/users/mp911de","html_url":"https://github.com/mp911de","followers_url":"https://api.github.com/users/mp911de/followers","following_url":"https://api.github.com/users/mp911de/following{/other_user}","gists_url":"https://api.github.com/users/mp911de/gists{/gist_id}","starred_url":"https://api.github.com/users/mp911de/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mp911de/subscriptions","organizations_url":"https://api.github.com/users/mp911de/orgs","repos_url":"https://api.github.com/users/mp911de/repos","events_url":"https://api.github.com/users/mp911de/events{/privacy}","received_events_url":"https://api.github.com/users/mp911de/received_events","type":"User","site_admin":false},"created_at":"2015-11-05T06:47:58Z","updated_at":"2015-11-05T06:47:58Z","body":"Hi @longkerdandy,\r\nthanks for your feature-request. lettuce is a low-level client that allows users to execute Redis commands. High-level functionality such as distributed locks or object mapping are not in the scope of lettuce. However there are other clients like https://github.com/spring-projects/spring-data-redis and https://github.com/mrniko/redisson that provide high-level functionality for your application. It's worth taking a look on these libraries.\r\n\r\nlettuce is intended to provide command-level access to Redis and to do its job in the best way possible."}}