public function get( $args, $assoc_args ) {
		list( $key, $group ) = $args;
		$value               = wp_cache_get( $key, $group );

		if ( false === $value ) {
			WP_CLI::error( "Object with key '$key' and group '$group' not found." );
		}

		WP_CLI::print_value( $value, $assoc_args );
	}
public function get( $args, $assoc_args ) {
		list( $key, $group ) = $args;
		$value               = wp_cache_get( $key, $group );

		if ( false === $value ) {
			WP_CLI::error( "Object with key '$key' and group '$group' not found." );
		}

		WP_CLI::print_value( $value, $assoc_args );
	}
public function get ( $ args , $ assoc_args ) { list ( $ key , $ group ) = $ args ; $ value = wp_cache_get ( $ key , $ group ) ; if ( false === $ value ) { WP_CLI :: error ( "Object with key '$key' and group '$group' not found." ) ; } WP_CLI :: print_value ( $ value , $ assoc_args ) ; }
Gets a value from the object cache.

Errors if the value doesn't exist.

## OPTIONS

<key>
: Cache key.

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

## EXAMPLES

# Get cache.
$ wp cache get my_key my_group
my_value
Gets a value from the object cache .