container = $container; $this->config = $config; $this->prefix = $config['prefix'] ?? 'cache:'; $packerClass = $config['packer'] ?? PhpSerializerPacker::class; $this->packer = $container->get($packerClass); } public function getConnection(): mixed { throw new InvalidArgumentException('Cannot support method getConnection.'); } protected function getCacheKey(string $key) { return $this->prefix . $key; } }