private async Task <byte[]> RPopLPushCoreAsync(byte[] source, byte[] destination) { using var connection = new RedisConnection(_connectionSettings); var command = new RPopLPush(connection.GetStream(), source, destination); return(await command.ExecuteAsync()); }
private byte[] RPopLPushCore(byte[] source, byte[] destination) { using var connection = new RedisConnection(_connectionSettings); var command = new RPopLPush(connection.GetStream(), source, destination); return(command.Execute()); }