Redis官网——如何利用Redis做服务器集群的分布式锁
2015-09-11 00:00
681 查看
链接: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 a fork of Redlock-rb that 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.
原理很简单,一段时间内轮询加锁的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 a fork of Redlock-rb that 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.
相关文章推荐
- redis的主从配置问题
- redis缓存服务器在java中的使用
- Redis学习3之单节点上redis集群搭建和使用
- redis异常解决:jedis.exceptions.JedisDataException: ERR Client sent AUTH, but no password is set
- 跳转表C语言,不比redis版本号
- Redis调用方式
- Redis调用方式
- ServiceStack.Redis——Redis于.net向上client解
- redis相关资料
- 从MySQL到Redis,提升数据迁移的效率
- Redis 客户端Jedis使用(一)
- Java中使用Jedis操作Redis
- Redis 和数据库连接池
- Redis - 02. 配置Redis
- 利用Redis cache优化app查询速度实践
- NoSql之Redis使用(一)
- PHP安装redis扩展
- C# redis 系列四
- C# redis 系列三
- Spring 集成redis3.0.3集群管理