# EventHubQueueCache.Add(List&lt;EventData&gt;, DateTime)

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.streaming.eventhubs/orleans.streaming.eventhubs.eventhubqueuecache/) | [Methods](/orleans/docs/api/csharp/microsoft.orleans.streaming.eventhubs/orleans.streaming.eventhubs.eventhubqueuecache/methods/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Azure/Orleans.Streaming.EventHubs/Providers/Streams/EventHub/EventHubQueueCache.cs#L117-L126)

```csharp
public List<StreamPosition> Add(List<EventData> messages, DateTime dequeueTimeUtc)
```

Add a list of EventHub EventData to the cache.

### Parameters

- `messages` (`List<EventData>`)
- `dequeueTimeUtc` (`DateTime`)
