Increments numeric cache item’s value.
Description
See also
Parameters
$key
int|stringrequired- The key for the cache contents that should be incremented.
$offset
intoptional- The amount by which to increment the item’s value.
Default:
1
$group
stringoptional- The group the key is in.
Default:
''
Source
function wp_cache_incr( $key, $offset = 1, $group = '' ) {
global $wp_object_cache;
return $wp_object_cache->incr( $key, $offset, $group );
}
Changelog
Version | Description |
---|---|
3.3.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.