pools[$name])) { return $this->pools[$name]; } if ($this->container instanceof Container) { $pool = $this->container->make(RedisPool::class, ['name' => $name]); } else { $pool = new RedisPool($this->container, $name); } return $this->pools[$name] = $pool; } }