Skip to content

Commit

Permalink
修改说明
Browse files Browse the repository at this point in the history
  • Loading branch information
yujiasun committed Feb 28, 2016
2 parents 55a2de3 + d573e3f commit 0e13b5d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
基于redis和zookeeper分布式工具集-包括:分布式锁实现,分布式速率限制器,分布式序列等.

## 使用
### maven: must install localrepository
### maven: 需先编译安装到本地仓库或者本地私服。
<pre><code>
&lt;dependency&gt;
&lt;groupId&gt;dance&lt;/groupId&gt;
Expand Down Expand Up @@ -71,10 +71,10 @@ public static void main(String[] args){
~~~
##基于Redis实现的分布式速率限制器

>限制的资源,可以是ip,用户id,订单id,手机号,等等.
*例如限制一个手机号每分钟只能发1条短信.
*例如限制一个手机号每10秒钟只能发起1次叫车请求.
*例如限制一个ip地址每秒钟只能访问10次特定的资源.
限制的资源,可以是ip,用户id,订单id,手机号,等等.
* 例如限制一个手机号每分钟只能发1条短信.
* 例如限制一个手机号每10秒钟只能发起1次叫车请求.
* 例如限制一个ip地址每秒钟只能访问10次特定的资源.

~~~ java
public class AccessSpeedLimitTest {
Expand Down

0 comments on commit 0e13b5d

Please sign in to comment.