From 97724b04df38b91fde7b83c74cce17e39c54382a Mon Sep 17 00:00:00 2001 From: JaguarJack Date: Sat, 20 Jun 2020 16:57:37 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9Ecatchadmin=E6=A8=A1=E5=9D=97?= =?UTF-8?q?=E5=8F=91=E7=8E=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- composer.json | 3 ++- extend/catcher/facade/Trie.php | 17 +++++++++++++++++ extend/catcher/library/ProgressBar.php | 10 ++++++++++ extend/catcher/library/Trie.php | 2 +- 4 files changed, 30 insertions(+), 2 deletions(-) create mode 100644 extend/catcher/library/ProgressBar.php diff --git a/composer.json b/composer.json index 9c9d2be..a664d57 100644 --- a/composer.json +++ b/composer.json @@ -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" ] } } diff --git a/extend/catcher/facade/Trie.php b/extend/catcher/facade/Trie.php index b3d9bbc..22f67ba 100644 --- a/extend/catcher/facade/Trie.php +++ b/extend/catcher/facade/Trie.php @@ -1 +1,18 @@ + * @copyright By CatchAdmin + * @license https://github.com/yanwenwu/catch-admin/blob/master/LICENSE.txt + */ \ No newline at end of file diff --git a/extend/catcher/library/Trie.php b/extend/catcher/library/Trie.php index 806bd16..cad03f0 100644 --- a/extend/catcher/library/Trie.php +++ b/extend/catcher/library/Trie.php @@ -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); } } \ No newline at end of file