wp_cache_decr

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

Decrement numeric cache item’s value

Parameters

  • int|string $key: The cache key to increment
  • int $offset: The amount by which to decrement 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_decr( $key, $offset = 1, $group = '' ) {

	global $wp_object_cache;



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

}

17443

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: