Access violation raied in TRedisCommand with SetCommand used like this.
vRedisCommand.SetCommand('SET').Add('test').....
because, TRedisCommand.SetCommand not return self object.
function TRedisCommand.SetCommand(AString: string): IRedisCommand;
begin
FParts.Clear;
FParts.Add(TEncoding.ASCII.GetBytes(AString));
FCommandIsSet := True;
Result := Self; <-- need this.
end;
Access violation raied in TRedisCommand with SetCommand used like this.
vRedisCommand.SetCommand('SET').Add('test').....
because, TRedisCommand.SetCommand not return self object. function TRedisCommand.SetCommand(AString: string): IRedisCommand; begin FParts.Clear; FParts.Add(TEncoding.ASCII.GetBytes(AString)); FCommandIsSet := True; Result := Self; <-- need this. end;