wp_cache_get_multiple

Advertisement

Summery Summery

Retrieves multiple values from the cache in one call.

Syntax Syntax

wp_cache_get_multiple( array $keys, string $group = '', bool $force = false )

Parameters Parameters

$keys

(Required) Array of keys under which the cache contents are stored.

$group

(Optional) Where the cache contents are grouped.

Default value: ''

$force

(Optional) Whether to force an update of the local cache from the persistent cache.

Default value: false

Return Return

(array) Array of values organized into groups.

Source Source

File: wp-includes/cache.php

function wp_cache_get_multiple( $keys, $group = '', $force = false ) {
	global $wp_object_cache;

	return $wp_object_cache->get_multiple( $keys, $group, $force );
}

Advertisement

Changelog Changelog

Changelog
Version Description
5.5.0 Introduced.

See also See also

Advertisement

Leave a Reply