public function register() { // TODO 缓存 redis 实例可以配置 $this->app->singleton(Meta::class, function () { return new RedisMeta($this->getRedis()); }); $this->app->singleton(Cache::class, function () { return new RedisCache($this->getRedis()); }); }