WPDKUser::setTransient PHP Method

setTransient() public method

You do not need to serialize values. If the value needs to be serialized, then it will be serialized before it is set.
Since: 1.3.0
public setTransient ( string $transient, mixed $value, integer $expiration ) : boolean
$transient string Transient name. Expected to not be SQL-escaped.
$value mixed Transient value. Expected to not be SQL-escaped.
$expiration integer Time until expiration in seconds, default 0
return boolean False if value was not set and true if value was set.
    public function setTransient($transient, $value, $expiration = 0)
    {
        if (!empty($this->ID)) {
            self::setTransientWithUser($transient, $value, $expiration, $this->ID);
        }
    }