public function incr( $args, $assoc_args ) {
		list( $key, $offset, $group ) = $args;
		$value = wp_cache_incr( $key, $offset, $group );

		if ( false === $value ) {
			WP_CLI::error( 'The value was not incremented.' );
		}

		WP_CLI::print_value( $value, $assoc_args );
	}
public function incr( $args, $assoc_args ) {
		list( $key, $offset, $group ) = $args;
		$value = wp_cache_incr( $key, $offset, $group );

		if ( false === $value ) {
			WP_CLI::error( 'The value was not incremented.' );
		}

		WP_CLI::print_value( $value, $assoc_args );
	}
public function incr ( $ args , $ assoc_args ) { list ( $ key , $ offset , $ group ) = $ args ; $ value = wp_cache_incr ( $ key , $ offset , $ group ) ; if ( false === $ value ) { WP_CLI :: error ( 'The value was not incremented.' ) ; } WP_CLI :: print_value ( $ value , $ assoc_args ) ; }
Increments a value in the object cache.

Errors if the value can't be incremented.

## OPTIONS

<key>
: Cache key.

[<offset>]
: The amount by which to increment the item's value.
---
default: 1
---

[<group>]
: Method for grouping data within the cache which allows the same key to be used across groups.
---
default: default
---

## EXAMPLES

# Increase cache value.
$ wp cache incr my_key 2 my_group
50
Increments a value in the object cache .