remove some unused class

This commit is contained in:
whale 2020-03-05 13:10:43 +08:00
parent 8f72d35ce7
commit 7589894eb5
7 changed files with 0 additions and 98 deletions

View File

@ -1,18 +0,0 @@
<?php
namespace ZM\DBCache;
class CourseCache implements DBCache
{
/**
* @var array
*/
private static $data;
public static function reset() {
self::$data = [];
}
}

View File

@ -1,10 +0,0 @@
<?php
namespace ZM\DBCache;
interface DBCache
{
public static function reset();
}

View File

@ -1,15 +0,0 @@
<?php
namespace ZM\DBCache;
class DBCacheManager
{
public static function freeAllCache(){
DHUerCache::reset();
UserCache::reset();
GroupCache::reset();
CourseCache::reset();
}
}

View File

@ -1,17 +0,0 @@
<?php
namespace ZM\DBCache;
class DHUerCache implements DBCache
{
/**
* @var array
*/
private static $data;
public static function reset() {
self::$data = [];
}
}

View File

@ -1,18 +0,0 @@
<?php
namespace ZM\DBCache;
class GroupCache implements DBCache
{
/**
* @var array
*/
private static $data;
public static function reset() {
self::$data = [];
}
}

View File

@ -1,18 +0,0 @@
<?php
namespace ZM\DBCache;
class UserCache implements DBCache
{
/**
* @var array
*/
private static $data;
public static function reset() {
self::$data = [];
}
}

View File

@ -13,7 +13,6 @@ use ZM\Annotation\AnnotationParser;
use ZM\Annotation\Swoole\SwooleEventAfter;
use ZM\Connection\ConnectionManager;
use ZM\DB\DB;
use ZM\DBCache\DBCacheManager;
use Framework\Console;
use Framework\GlobalConfig;
use Framework\ZMBuf;
@ -45,7 +44,6 @@ class WorkerStartEvent implements SwooleEvent
Console::info("Worker启动中");
ZMBuf::resetCache(); //清空变量缓存
ZMBuf::set("wait_start", []); //添加队列在workerStart运行完成前先让其他协程等待执行
DBCacheManager::freeAllCache(); // 清空数据库缓存
$this->resetConnections();//释放所有与framework的连接
//设置炸毛buf中储存的对象