Uses
Uses | Description |
---|---|
wp-includes/class-wp-object-cache.php: WP_Object_Cache::get() | Retrieves the cache contents, if it exists. |
Retrieves multiple values from the cache in one call.
(array) (Required) Array of keys under which the cache contents are stored.
(string) (Optional) Where the cache contents are grouped.
Default value: 'default'
(bool) (Optional) Whether to force an update of the local cache from the persistent cache.
Default value: false
(array) Array of values organized into groups.
File: wp-includes/class-wp-object-cache.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; }
Version | Description |
---|---|
5.5.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_object_cache/get_multiple