Changeset 47060 for trunk/src/wp-includes/cache.php
- Timestamp:
- 01/11/2020 06:30:58 PM (7 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/cache.php (modified) (9 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/cache.php
r45161 r47060 23 23 * @param int $expire Optional. When the cache data should expire, in seconds. 24 24 * Default 0 (no expiration). 25 * @return bool False if cache key and group already exist, true on success.25 * @return bool True on success, false if cache key and group already exist. 26 26 */ 27 27 function wp_cache_add( $key, $data, $group = '', $expire = 0 ) { … … 59 59 * @param int $offset Optional. The amount by which to decrement the item's value. Default 1. 60 60 * @param string $group Optional. The group the key is in. Default empty. 61 * @return false|int False on failure, the item's new value on success.61 * @return int|false The item's new value on success, false on failure. 62 62 */ 63 63 function wp_cache_decr( $key, $offset = 1, $group = '' ) { … … 93 93 * @global WP_Object_Cache $wp_object_cache Object cache global instance. 94 94 * 95 * @return bool False on failure, true on success95 * @return bool True on success, false on failure. 96 96 */ 97 97 function wp_cache_flush() { … … 135 135 * @param int $offset Optional. The amount by which to increment the item's value. Default 1. 136 136 * @param string $group Optional. The group the key is in. Default empty. 137 * @return false|int False on failure, the item's new value on success.137 * @return int|false The item's new value on success, false on failure. 138 138 */ 139 139 function wp_cache_incr( $key, $offset = 1, $group = '' ) { … … 192 192 * @param int $expire Optional. When to expire the cache contents, in seconds. 193 193 * Default 0 (no expiration). 194 * @return bool False on failure, true on success194 * @return bool True on success, false on failure. 195 195 */ 196 196 function wp_cache_set( $key, $data, $group = '', $expire = 0 ) { … … 397 397 * @param string $group Optional. Where to group the cache contents. Default 'default'. 398 398 * @param int $expire Optional. When to expire the cache contents. Default 0 (no expiration). 399 * @return bool False if cache key and group already exist, true on success399 * @return bool True on success, false if cache key and group already exist. 400 400 */ 401 401 public function add( $key, $data, $group = 'default', $expire = 0 ) { … … 442 442 * @param int $offset Optional. The amount by which to decrement the item's value. Default 1. 443 443 * @param string $group Optional. The group the key is in. Default 'default'. 444 * @return false|int False on failure, the item's new value on success.444 * @return int|false The item's new value on success, false on failure. 445 445 */ 446 446 public function decr( $key, $offset = 1, $group = 'default' ) { … … 531 531 * @param bool $found Optional. Whether the key was found in the cache (passed by reference). 532 532 * Disambiguates a return of false, a storable value. Default null. 533 * @return false|mixed False on failure to retrieve contents or the cache contents on success.533 * @return mixed|false The cache contents on success, false on failure to retrieve contents. 534 534 */ 535 535 public function get( $key, $group = 'default', $force = false, &$found = null ) { … … 565 565 * @param int $offset Optional. The amount by which to increment the item's value. Default 1. 566 566 * @param string $group Optional. The group the key is in. Default 'default'. 567 * @return false|int False on failure, the item's new value on success.567 * @return int|false The item's new value on success, false on failure. 568 568 */ 569 569 public function incr( $key, $offset = 1, $group = 'default' ) {
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)