Changeset 52703 for trunk/src/wp-includes/cache.php
- Timestamp:
- 02/11/2022 05:42:51 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/cache.php
r52700 r52703 60 60 * 61 61 * @param int|string $key The cache key to decrement. 62 * @param int $offset Optional. The amount by which to decrement the item's value. Default 1. 62 * @param int $offset Optional. The amount by which to decrement the item's value. 63 * Default 1. 63 64 * @param string $group Optional. The group the key is in. Default empty. 64 65 * @return int|false The item's new value on success, false on failure. … … 146 147 } 147 148 148 149 /** 150 * Delete multiple values from the cache in one call. 149 /** 150 * Deletes multiple values from the cache in one call. 151 151 * 152 152 * @since 6.0.0 … … 157 157 * @param array $keys Array of keys under which the cache to deleted. 158 158 * @param string $group Optional. Where the cache contents are grouped. Default empty. 159 * @return array Array of return values organized into groups.159 * @return array Array of return values. 160 160 */ 161 161 function wp_cache_delete_multiple( array $keys, $group = '' ) { … … 166 166 167 167 /** 168 * Add multiple values to the cache in one call.168 * Adds multiple values to the cache in one call. 169 169 * 170 170 * @since 6.0.0 … … 173 173 * @global WP_Object_Cache $wp_object_cache Object cache global instance. 174 174 * 175 * @param array $data Array of key and valueto be set.176 * @param string $group Optional. Where the cache contents are grouped. Default empty.175 * @param array $data Array of keys and values to be set. 176 * @param string $group Optional. Where the cache contents are grouped. Default empty. 177 177 * @param int $expire Optional. When to expire the cache contents, in seconds. 178 * 178 * Default 0 (no expiration). 179 179 * @return array Array of return values. 180 180 */ … … 186 186 187 187 /** 188 * Set multiple values to the cache in one call.188 * Sets multiple values to the cache in one call. 189 189 * 190 190 * @since 6.0.0 … … 193 193 * @global WP_Object_Cache $wp_object_cache Object cache global instance. 194 194 * 195 * @param array $data Array of key and valueto be set.196 * @param string $group Optional. Where the cache contents are grouped. Default empty.195 * @param array $data Array of keys and values to be set. 196 * @param string $group Optional. Where the cache contents are grouped. Default empty. 197 197 * @param int $expire Optional. When to expire the cache contents, in seconds. 198 * 198 * Default 0 (no expiration). 199 199 * @return array Array of return values. 200 200 */ … … 206 206 207 207 /** 208 * Increment numeric cache item's value208 * Increments numeric cache item's value. 209 209 * 210 210 * @since 3.3.0 … … 214 214 * 215 215 * @param int|string $key The key for the cache contents that should be incremented. 216 * @param int $offset Optional. The amount by which to increment the item's value. Default 1. 216 * @param int $offset Optional. The amount by which to increment the item's value. 217 * Default 1. 217 218 * @param string $group Optional. The group the key is in. Default empty. 218 219 * @return int|false The item's new value on success, false on failure. … … 249 250 * @param int $expire Optional. When to expire the cache contents, in seconds. 250 251 * Default 0 (no expiration). 251 * @return bool False if original value does not exist, true if contents were replaced252 * @return bool True if contents were replaced, false if original value does not exist. 252 253 */ 253 254 function wp_cache_replace( $key, $data, $group = '', $expire = 0 ) { … … 336 337 * function when preparing the cache for a blog switch. For clearing the cache 337 338 * during unit tests, consider using wp_cache_init(). wp_cache_init() is not 338 * recommended outside of unit tests as the performance penalty for using it is 339 * high. 339 * recommended outside of unit tests as the performance penalty for using it is high. 340 340 * 341 341 * @since 2.6.0
Note: See TracChangeset
for help on using the changeset viewer.