芝麻web文件管理V1.00
编辑当前文件:/home/ezdajrnh/www/wp-content/plugins/google-site-kit/includes/Core/Storage/Transients.php
context = $context; } /** * Gets the value of the given transient. * * @since 1.0.0 * * @param string $transient Transient name. * @return mixed Value set for the transient, or false if not set. */ public function get( $transient ) { if ( $this->context->is_network_mode() ) { return get_site_transient( $transient ); } return get_transient( $transient ); } /** * Sets the value for a transient. * * @since 1.0.0 * * @param string $transient Transient name. * @param mixed $value Transient value. Must be serializable if non-scalar. * @param int $expiration Optional. Time until expiration in seconds. Default 0 (no expiration). * @return bool True on success, false on failure. */ public function set( $transient, $value, $expiration = 0 ) { if ( $this->context->is_network_mode() ) { return set_site_transient( $transient, $value, $expiration ); } return set_transient( $transient, $value, $expiration ); } /** * Deletes the given transient. * * @since 1.0.0 * * @param string $transient Transient name. * @return bool True on success, false on failure. */ public function delete( $transient ) { if ( $this->context->is_network_mode() ) { return delete_site_transient( $transient ); } return delete_transient( $transient ); } }