AdminPageFramework_WPUtility_Option::setTransient PHP Method

setTransient() public static method

public static setTransient ( $sTransientKey, $vValue, $iExpiration )
    public static function setTransient($sTransientKey, $vValue, $iExpiration = 0)
    {
        global $_wp_using_ext_object_cache;
        $_bWpUsingExtObjectCacheTemp = $_wp_using_ext_object_cache;
        $_wp_using_ext_object_cache = false;
        self::$_bIsNetworkAdmin = isset(self::$_bIsNetworkAdmin) ? self::$_bIsNetworkAdmin : is_network_admin();
        $sTransientKey = self::_getCompatibleTransientKey($sTransientKey, self::$_bIsNetworkAdmin ? 40 : 45);
        $_aFunctionNames = array(0 => 'set_transient', 1 => 'set_site_transient');
        $_bIsSet = $_aFunctionNames[(int) self::$_bIsNetworkAdmin]($sTransientKey, $vValue, $iExpiration);
        $_wp_using_ext_object_cache = $_bWpUsingExtObjectCacheTemp;
        return $_bIsSet;
    }