private function getCacheKey(CacheableCommand $command)
    {
        if ($command instanceof HasCacheOptions && $command->getCacheKey()) {
            return $command->getCacheKey();
        }

        return md5(serialize($command));
    }