新增catchadmin模块发现

This commit is contained in:
JaguarJack 2020-06-20 16:57:37 +08:00
parent 6e9c0aed32
commit 97724b04df
4 changed files with 30 additions and 2 deletions

View File

@ -55,7 +55,8 @@
"scripts": {
"post-autoload-dump": [
"@php think service:discover",
"@php think vendor:publish"
"@php think vendor:publish",
"@php think catch-service:discover"
]
}
}

View File

@ -1 +1,18 @@
<?php
namespace catcher\facade;
use think\Facade;
/**
* @method static \catcher\library\Trie add(string $word)
* @method static \catcher\library\Trie filter(string $content)
*
* @time 2020年05月22日
*/
class Trie extends Facade
{
protected static function getFacadeClass()
{
return \catcher\library\Trie::class;
}
}

View File

@ -0,0 +1,10 @@
<?php
/**
* @filename ProgressBar.php
* @createdAt 2020/6/20
* @project https://github.com/yanwenwu/catch-admin
* @document http://doc.catchadmin.com
* @author JaguarJack <njphper@gmail.com>
* @copyright By CatchAdmin
* @license https://github.com/yanwenwu/catch-admin/blob/master/LICENSE.txt
*/

View File

@ -144,6 +144,6 @@ class Trie
*/
public function cached()
{
Cache::store('redis')->set(CatchCacheKeys::TRIE_TREE, $this->tree);
return Cache::store('redis')->set(CatchCacheKeys::TRIE_TREE, $this->tree);
}
}