Jamm\Memory\IRedisServer::GetSet PHP Method

GetSet() public method

Returns an error when key exists but does not hold a string value. Usage: From time to time we need to get the value of the counter and reset it to zero atomically. This can be done using GETSET mycounter "0".
public GetSet ( string $key, string $value ) : string
$key string
$value string
return string
    public function GetSet($key, $value);