Skip to content

Commit

Permalink
zys高性能服务框架
Browse files Browse the repository at this point in the history
zys高性能服务框架
  • Loading branch information
qieangel2013 authored Aug 16, 2016
1 parent e25468c commit cd90d0a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
###composer 安装
{
"require": {
"qieangel2013/zys": "0.1.3"
"qieangel2013/zys": "0.1.4"
}
}
###分布式服务器通讯服务
Expand All @@ -33,9 +33,10 @@
使用如下
//注意:type为sql、file,要是需要别的功能,自己定义
if($_FILES){
//数据同步
$sql = array('type'=>'sql','data'=>'show tables');
var_dump(distributed::getInstance()->query($sql));
//文件同步
//文件同步(不用安装rsync+notify就可以实现文件同步,并且是触发式的占用很小的资源,调用sendfile零复制)
$dir_pre=MYPATH.'/public/uploads/';
if(!is_dir($dir_pre.date('Ymd'))){
mkdir($dir_pre.date('Ymd'),0777,true);
Expand Down

0 comments on commit cd90d0a

Please sign in to comment.