WordPress at a glance
function is not described

WP_Object_Cache::get_multiple() public WP 5.5.0

Retrieves multiple values from the cache in one call.

{} It's a method of the class: WP_Object_Cache{}

No Hooks.

Return

Array. Array of values organized into groups.

Usage

$WP_Object_Cache = new WP_Object_Cache();
$WP_Object_Cache->get_multiple( $keys, $group, $force );
$keys(array) (required)
Array of keys under which the cache contents are stored.
$group(string)
Where the cache contents are grouped.
Default: 'default'
$force(true|false)
Whether to force an update of the local cache from the persistent cache.
Default: false

Changelog

Since 5.5.0 Introduced.

Code of WP_Object_Cache::get_multiple() WP 5.7.2

<?php
public function get_multiple( $keys, $group = 'default', $force = false ) {
	$values = array();

	foreach ( $keys as $key ) {
		$values[ $key ] = $this->get( $key, $group, $force );
	}

	return $values;
}