wp_cache_incr

Definition:
function wp_cache_incr( $key, $offset = 1, $group = '' ) {}

Increment numeric cache item’s value

Parameters

  • int|string $key: The cache key to increment
  • int $offset: The amount by which to increment the item’s value. Default is 1.
  • string $group: The group the key is in.

Return values

returns:False on failure, the item’s new value on success.

Source code

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

	global $wp_object_cache;



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

}

17449

No comments yet... Be the first to leave a reply!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: