Redis官网——如何利用Redis做服务器集群的分布式锁

2016-07-12 10:18:20来源:oschina作者:丑矬穷人点击

链接:http://redis.io/topics/distlock


原理很简单,一段时间内轮询加锁的key


重点,不同语言的开源实现


Before describing the algorithm, here are a few links to implementations already available that can be used for reference.

Redlock-rb(Ruby 实现). There is also afork of Redlock-rbthat adds a gem for easy distribution and perhaps more.


Redlock-py(Python 实现).


Redlock-php(PHP 实现).


Redsync.go(Go 实现).


Redisson(Java 实现).


Redis::DistLock(Perl 实现).


Redlock-cpp(C++ 实现).


Redlock-cs(C#/.NET 实现).


node-redlock(NodeJS 实现). Includes support for lock extension.


最新文章

123

最新摄影

微信扫一扫

第七城市微信公众平台