Changeset 18653 for trunk/wp-includes/cache.php
- Timestamp:
- 09/08/2011 05:19:09 PM (14 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/cache.php (modified) (13 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/cache.php
r18644 r18653 16 16 * @see WP_Object_Cache::add() 17 17 * 18 * @param int|string $key The cache IDto use for retrieval later18 * @param int|string $key The cache key to use for retrieval later 19 19 * @param mixed $data The data to add to the cache store 20 20 * @param string $group The group to add the cache to … … 51 51 * @see WP_Object_Cache::decr() 52 52 * 53 * @param int|string $key The cache IDto increment53 * @param int|string $key The cache key to increment 54 54 * @param int $offset The amount by which to decrement the item's value. Default is 1. 55 55 * @param string $group The group the key is in. … … 63 63 64 64 /** 65 * Removes the cache contents matching ID and flag.65 * Removes the cache contents matching key and group. 66 66 * 67 67 * @since 2.0.0 … … 95 95 96 96 /** 97 * Retrieves the cache contents from the cache by ID and flag.97 * Retrieves the cache contents from the cache by key and group. 98 98 * 99 99 * @since 2.0.0 … … 119 119 * @see WP_Object_Cache::incr() 120 120 * 121 * @param int|string $key The cache IDto increment121 * @param int|string $key The cache key to increment 122 122 * @param int $offset The amount by which to increment the item's value. Default is 1. 123 123 * @param string $group The group the key is in. … … 151 151 * @param string $group Where to group the cache contents 152 152 * @param int $expire When to expire the cache contents 153 * @return bool False if cache ID and group already exists, true on success153 * @return bool False if cache key and group already exist, true on success 154 154 */ 155 155 function wp_cache_replace($key, $data, $group = '', $expire = 0) { … … 170 170 * @param string $group Where to group the cache contents 171 171 * @param int $expire When to expire the cache contents 172 * @return bool False if cache ID and group already exists, true on success172 * @return bool False if cache key and group already exist, true on success 173 173 */ 174 174 function wp_cache_set($key, $data, $group = '', $expire = 0) { … … 291 291 * @param string $group Where to group the cache contents 292 292 * @param int $expire When to expire the cache contents 293 * @return bool False if cache ID and group already exists, true on success293 * @return bool False if cache key and group already exist, true on success 294 294 */ 295 295 function add( $key, $data, $group = 'default', $expire = '' ) { … … 322 322 * @since 3.3.0 323 323 * 324 * @param int|string $key The cache IDto increment324 * @param int|string $key The cache key to increment 325 325 * @param int $offset The amount by which to decrement the item's value. Default is 1. 326 326 * @param string $group The group the key is in. … … 345 345 346 346 /** 347 * Remove the contents of the cache IDin the group348 * 349 * If the cache IDdoes not exist in the group and $force parameter is set347 * Remove the contents of the cache key in the group 348 * 349 * If the cache key does not exist in the group and $force parameter is set 350 350 * to false, then nothing will happen. The $force parameter is set to false 351 351 * by default. … … 359 359 * @param string $group Where the cache contents are grouped 360 360 * @param bool $force Optional. Whether to force the unsetting of the cache 361 * IDin the group361 * key in the group 362 362 * @return bool False if the contents weren't deleted and true on success 363 363 */ … … 391 391 * 392 392 * The contents will be first attempted to be retrieved by searching by the 393 * IDin the cache group. If the cache is hit (success) then the contents393 * key in the cache group. If the cache is hit (success) then the contents 394 394 * are returned. 395 395 * 396 396 * On failure, the $non_existent_objects property is checked and if the 397 * cache group and IDexist in there the cache misses will not be397 * cache group and key exist in there the cache misses will not be 398 398 * incremented. If not in the nonexistent objects property, then the cache 399 * misses will be incremented and the cache group and IDwill be added to399 * misses will be incremented and the cache group and key will be added to 400 400 * the nonexistent objects. 401 401 * … … 432 432 * @since 3.3.0 433 433 * 434 * @param int|string $key The cache IDto increment434 * @param int|string $key The cache key to increment 435 435 * @param int $offset The amount by which to increment the item's value. Default is 1. 436 436 * @param string $group The group the key is in.
Note: See TracChangeset
for help on using the changeset viewer.