Skip to content

Commit cd90d0a

Browse files
authored
zys高性能服务框架
zys高性能服务框架
1 parent e25468c commit cd90d0a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
###composer 安装
2222
{
2323
"require": {
24-
"qieangel2013/zys": "0.1.3"
24+
"qieangel2013/zys": "0.1.4"
2525
}
2626
}
2727
###分布式服务器通讯服务
@@ -33,9 +33,10 @@
3333
使用如下
3434
//注意:type为sql、file,要是需要别的功能,自己定义
3535
if($_FILES){
36+
//数据同步
3637
$sql = array('type'=>'sql','data'=>'show tables');
3738
var_dump(distributed::getInstance()->query($sql));
38-
//文件同步
39+
//文件同步(不用安装rsync+notify就可以实现文件同步,并且是触发式的占用很小的资源,调用sendfile零复制)
3940
$dir_pre=MYPATH.'/public/uploads/';
4041
if(!is_dir($dir_pre.date('Ymd'))){
4142
mkdir($dir_pre.date('Ymd'),0777,true);

0 commit comments

Comments
 (0)