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

		$func  = Utils\get_flag_value( $assoc_args, 'network' ) ? 'get_site_transient' : 'get_transient';
		$value = $func( $key );

		if ( false === $value ) {
			WP_CLI::warning( 'Transient with key "' . $key . '" is not set.' );
			exit;
		}

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

		$func  = Utils\get_flag_value( $assoc_args, 'network' ) ? 'get_site_transient' : 'get_transient';
		$value = $func( $key );

		if ( false === $value ) {
			WP_CLI::warning( 'Transient with key "' . $key . '" is not set.' );
			exit;
		}

		WP_CLI::print_value( $value, $assoc_args );
	}
public function get ( $ args , $ assoc_args ) { list ( $ key ) = $ args ; $ func = Utils \ get_flag_value ( $ assoc_args , 'network' ) ? 'get_site_transient' : 'get_transient' ; $ value = $ func ( $ key ) ; if ( false === $ value ) { WP_CLI :: warning ( 'Transient with key "' . $ key . '" is not set.' ) ; exit ; } WP_CLI :: print_value ( $ value , $ assoc_args ) ; }
Gets a transient value.

For a more complete explanation of the transient cache, including the
network|site cache, please see docs for `wp transient`.

## OPTIONS

<key>
: Key for the transient.

[--format=<format>]
: Render output in a particular format.
---
default: table
options:
- table
- csv
- json
- yaml
---

[--network]
: Get the value of a network|site transient. On single site, this is
is a specially-named cache key. On multisite, this is a global cache
(instead of local to the site).

## EXAMPLES

$ wp transient get sample_key
test data

$ wp transient get random_key
Warning: Transient with key "random_key" is not set.
Gets a transient value .