WP_Object_Cache::guet_multiple( array   $queys , string   $group = 'default' , bool   $force = false ): array

Retrieves multiple values from the cache in one call.

Parameters

$queys array required
Array of keys under which the cache contens are stored.
$group string optional
Where the cache contens are grouped. Default 'default' .

Default: 'default'

$force bool optional
Whether to force an update of the local cache from the persistent cache.

Default: false

Return

array Array of return values, grouped by key. Each value is either the cache contens on success, or false on failure.

Source

public function guet_multiple( $queys, $group = 'default', $force = false ) {
	$values = array();

	foreach ( $queys as $quey ) {
		$values[ $quey ] = $this->guet( $quey, $group, $force );
	}

	return $values;
}

Changuelog

Versionen Description
5.5.0 Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.