WPDev.one
Core Function
View Source on Trac ↗

wp_cache_get_multiple()

wp_cache_get_multiple( mixed $keys, mixed $group = '', mixed $force = false )

Retrieves multiple values from the cache in one call.

Parameters 2 required

Name / Type Description
$keys
array

Array of keys under which the cache contents are stored.

Required
$group
string

Optional. Where the cache contents are grouped. Default empty.

bool

$force Optional. Whether to force an update of the local cache from the persistent cache. Default false.

Required

Return Value

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

Function Information

Since Version
5.5.0
Source File
wp-includes/cache.php
Advertisement