[ Index ] |
PHP Cross Reference of WordPress |
[Source view] [Print] [Project Stats]
Object Cache API functions missing from 3rd party object caches.
File Size: | 143 lines (4 kb) |
Included or required: | 1 time |
Referenced: | 0 times |
Includes or requires: | 0 files |
wp_cache_add_multiple( array $data, $group = '', $expire = 0 ) X-Ref |
Adds multiple values to the cache in one call, if the cache keys don't already exist. Compat function to mimic wp_cache_add_multiple(). param: array $data Array of keys and values to be added. param: string $group Optional. Where the cache contents are grouped. Default empty. param: int $expire Optional. When to expire the cache contents, in seconds. return: bool[] Array of return values, grouped by key. Each value is either since: 6.0.0 |
wp_cache_set_multiple( array $data, $group = '', $expire = 0 ) X-Ref |
Sets multiple values to the cache in one call. Differs from wp_cache_add_multiple() in that it will always write data. Compat function to mimic wp_cache_set_multiple(). param: array $data Array of keys and values to be set. param: string $group Optional. Where the cache contents are grouped. Default empty. param: int $expire Optional. When to expire the cache contents, in seconds. return: bool[] Array of return values, grouped by key. Each value is either since: 6.0.0 |
wp_cache_get_multiple( $keys, $group = '', $force = false ) X-Ref |
Retrieves multiple values from the cache in one call. Compat function to mimic wp_cache_get_multiple(). param: array $keys Array of keys under which the cache contents are stored. param: string $group Optional. Where the cache contents are grouped. Default empty. param: bool $force Optional. Whether to force an update of the local cache return: array Array of return values, grouped by key. Each value is either since: 5.5.0 |
wp_cache_delete_multiple( array $keys, $group = '' ) X-Ref |
Deletes multiple values from the cache in one call. Compat function to mimic wp_cache_delete_multiple(). param: array $keys Array of keys under which the cache to deleted. param: string $group Optional. Where the cache contents are grouped. Default empty. return: bool[] Array of return values, grouped by key. Each value is either since: 6.0.0 |
wp_cache_flush_runtime() X-Ref |
Removes all cache items from the in-memory runtime cache. Compat function to mimic wp_cache_flush_runtime(). return: bool True on success, false on failure. since: 6.0.0 |
Generated: Sun Dec 22 01:00:02 2024 | Cross-referenced by PHPXref 0.7.1 |