public function set_large_object( $key, $value, $duration = 0 ) {
		$compressed = \gzencode( \serialize( $value ) ); // @codingStandardsIgnoreLine

		if ( false === $compressed ) {
			return false; // @codeCoverageIgnore
		}

		// base64_encode() is used to safely store the gzipped serialized object
		// in the WordPress database.
		return $this->set( $key, \base64_encode( $compressed ), $duration ); // phpcs:ignore WordPress.PHP.DiscouragedPHPFunctions.obfuscation_base64_encode
	}
public function set_large_object( $key, $value, $duration = 0 ) {
		$compressed = \gzencode( \serialize( $value ) ); // @codingStandardsIgnoreLine

		if ( false === $compressed ) {
			return false; // @codeCoverageIgnore
		}

		// base64_encode() is used to safely store the gzipped serialized object
		// in the WordPress database.
		return $this->set( $key, \base64_encode( $compressed ), $duration ); // phpcs:ignore WordPress.PHP.DiscouragedPHPFunctions.obfuscation_base64_encode
	}
public function set_large_object ( $ key , $ value , $ duration = 0 ) { $ compressed = \ gzencode ( \ serialize ( $ value ) ) ; // @codingStandardsIgnoreLine if ( false === $ compressed ) { return false ; // @codeCoverageIgnore } // base64_encode() is used to safely store the gzipped serialized object // in the WordPress database. return $ this -> set ( $ key , \ base64_encode ( $ compressed ) , $ duration ) ; // phpcs:ignore WordPress.PHP.DiscouragedPHPFunctions.obfuscation_base64_encode }
Sets a transient for a large PHP object. The object will be stored in
serialized and gzip encoded form using Base64 encoding to ensure binary safety.

@param string $key       The cache key.
@param mixed  $value     The value to store.
@param int    $duration  Optional. The duration in seconds. Default 0 (no expiration).

@return bool True if the cache could be set successfully.
Sets a transient for a large PHP object . The object will be stored in serialized and gzip encoded form using Base64 encoding to ensure binary safety .