Changeset 52703 for trunk/src/wp-includes/class-wp-object-cache.php
- Timestamp:
- 02/11/2022 05:42:51 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-object-cache.php
r52700 r52703 142 142 * @param mixed $data The contents to store in the cache. 143 143 * @param string $group Optional. Where to group the cache contents. Default 'default'. 144 * @param int $expire Optional. When to expire the cache contents. Default 0 (no expiration). 144 * @param int $expire Optional. When to expire the cache contents, in seconds. 145 * Default 0 (no expiration). 145 146 * @return bool True on success, false if cache key and group already exist. 146 147 */ … … 186 187 * 187 188 * @param int|string $key The cache key to decrement. 188 * @param int $offset Optional. The amount by which to decrement the item's value. Default 1. 189 * @param int $offset Optional. The amount by which to decrement the item's value. 190 * Default 1. 189 191 * @param string $group Optional. The group the key is in. Default 'default'. 190 192 * @return int|false The item's new value on success, false on failure. … … 228 230 * @param string $group Optional. Where the cache contents are grouped. Default 'default'. 229 231 * @param bool $deprecated Optional. Unused. Default false. 230 * @return bool False if the contents weren't deleted and true on success.232 * @return bool True on success, false if the contents were not deleted. 231 233 */ 232 234 public function delete( $key, $group = 'default', $deprecated = false ) { … … 325 327 326 328 /** 327 * Delete multiple values from the cache in one call.329 * Deletes multiple values from the cache in one call. 328 330 * 329 331 * @since 6.0.0 … … 344 346 345 347 /** 346 * Add multiple values to the cache in one call.348 * Adds multiple values to the cache in one call. 347 349 * 348 350 * @since 6.0.0 349 351 * 350 * @param array $data Array of key and valueto be added.352 * @param array $data Array of keys and values to be added. 351 353 * @param string $group Optional. Where the cache contents are grouped. Default empty. 352 * @param int $expire Optional. When to expire the cache contents, in seconds. Default 0 (no expiration). 354 * @param int $expire Optional. When to expire the cache contents, in seconds. 355 * Default 0 (no expiration). 353 356 * @return array Array of return values. 354 357 */ … … 364 367 365 368 /** 366 * Set multiple values to the cache in one call.369 * Sets multiple values to the cache in one call. 367 370 * 368 371 * @since 6.0.0 … … 370 373 * @param array $data Array of key and value to be set. 371 374 * @param string $group Optional. Where the cache contents are grouped. Default empty. 372 * @param int $expire Optional. When to expire the cache contents, in seconds. Default 0 (no expiration). 375 * @param int $expire Optional. When to expire the cache contents, in seconds. 376 * Default 0 (no expiration). 373 377 * @return array Array of return values. 374 378 */ … … 388 392 * @since 3.3.0 389 393 * 390 * @param int|string $key The cache key to increment 391 * @param int $offset Optional. The amount by which to increment the item's value. Default 1. 394 * @param int|string $key The cache key to increment. 395 * @param int $offset Optional. The amount by which to increment the item's value. 396 * Default 1. 392 397 * @param string $group Optional. The group the key is in. Default 'default'. 393 398 * @return int|false The item's new value on success, false on failure. … … 431 436 * @param mixed $data The contents to store in the cache. 432 437 * @param string $group Optional. Where to group the cache contents. Default 'default'. 433 * @param int $expire Optional. When to expire the cache contents. Default 0 (no expiration). 434 * @return bool False if not exists, true if contents were replaced. 438 * @param int $expire Optional. When to expire the cache contents, in seconds. 439 * Default 0 (no expiration). 440 * @return bool True if contents were replaced, false if original value does not exist. 435 441 */ 436 442 public function replace( $key, $data, $group = 'default', $expire = 0 ) { … … 487 493 * @param mixed $data The contents to store in the cache. 488 494 * @param string $group Optional. Where to group the cache contents. Default 'default'. 489 * @param int $expire Not Used.495 * @param int $expire Optional. Not used. 490 496 * @return true Always returns true. 491 497 */
Note: See TracChangeset
for help on using the changeset viewer.