Uses
Uses | Description |
---|---|
wp-includes/class-wp-object-cache.php: WP_Object_Cache::incr() | Increments numeric cache item’s value. |
Increment numeric cache item’s value
(int|string) (Required) The key for the cache contents that should be incremented.
(int) (Optional) The amount by which to increment the item's value.
Default value: 1
(string) (Optional) The group the key is in.
Default value: ''
(int|false) The item's new value on success, false on failure.
File: wp-includes/cache.php
function wp_cache_incr( $key, $offset = 1, $group = '' ) { global $wp_object_cache; return $wp_object_cache->incr( $key, $offset, $group ); }
Version | Description |
---|---|
3.3.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/wp_cache_incr