wpseek.com
A WordPress-centric search engine for devs and theme authors



wp_cache_incr › WordPress Function

Since3.3.0
Deprecatedn/a
wp_cache_incr ( $key, $offset = 1, $group = '' )
Parameters: (3)
  • (int|string) $key The key for the cache contents that should be incremented.
    Required: Yes
  • (int) $offset Optional. The amount by which to increment the item's value. Default 1.
    Required: No
    Default: 1
  • (string) $group Optional. The group the key is in. Default empty.
    Required: No
    Default: (empty)
See:
  • WP_Object_Cache::incr()
Returns:
  • (int|false) The item's new value on success, false on failure.
Defined at:
Codex:

Increments numeric cache item's value.



Source

function wp_cache_incr( $key, $offset = 1, $group = '' ) {
	global $wp_object_cache;

	return $wp_object_cache->incr( $key, $offset, $group );
}