Commit bd1ccacf by feixiang

redis 扩展增加去除设置过的前缀功能

parent f5d8a22a
...@@ -22,5 +22,12 @@ class Redis extends \Swoft\Redis\Redis ...@@ -22,5 +22,12 @@ class Redis extends \Swoft\Redis\Redis
$config->setPrefix($prefix); $config->setPrefix($prefix);
} }
public function __destruct()
{
$config = App::getBean(PrefixProcessor::class);
$config->setPrefix(config("redis.prefix",''));
}
} }
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment