<?php
/**
 * Global Transient
 *
 * Invalidates all versioned transients across every group simultaneously.
 *
 * @package AmbassadorHub\Cache
 */

namespace AmbassadorHub\Cache;

if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

/**
 * Global transients: only this class can invalidate everything.
 */
final class GlobalTransient extends AbstractTransientBase {

	protected const TRANSIENT_GROUP = '';

	/**
	 * Bump the global transient version, invalidating all versioned transients.
	 *
	 * @return void
	 */
	public static function bump_version(): void {
		parent::bump_global_version();
	}
}
