# EventHubQueueCacheFactory.CreateCache(string, IEventHubDataAdapter, StreamStatisticOptions, StreamCacheEvictionOptions, IStreamQueueCheckpointer&lt;string&gt;, ILoggerFactory, IObjectPool&lt;FixedSizeBuffer&gt;, string, TimePurgePredicate, EventHubMonitorAggregationDimensions)

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

[Source](https://github.com/dotnet/orleans/blob/b7a9e3e1c9c54b3cec3a467c5734bf7744541bcf/src/Azure/Orleans.Streaming.EventHubs/Providers/Streams/EventHub/EventHubQueueCacheFactory.cs#L146-L151)

```csharp
protected virtual IEventHubQueueCache CreateCache(string partition, IEventHubDataAdapter dataAdatper, StreamStatisticOptions statisticOptions, StreamCacheEvictionOptions streamCacheEvictionOptions, IStreamQueueCheckpointer<string> checkpointer, ILoggerFactory loggerFactory, IObjectPool<FixedSizeBuffer> bufferPool, string blockPoolId, TimePurgePredicate timePurge, EventHubMonitorAggregationDimensions sharedDimensions)
```

Default function to be called to create an EventhubQueueCache in IEventHubQueueCacheFactory.CreateCache method. User can override this method to add more customization.

### Parameters

- `partition` (`string`)
- `dataAdatper` (`IEventHubDataAdapter`)
- `statisticOptions` (`StreamStatisticOptions`)
- `streamCacheEvictionOptions` (`StreamCacheEvictionOptions`)
- `checkpointer` (`IStreamQueueCheckpointer<string>`)
- `loggerFactory` (`ILoggerFactory`)
- `bufferPool` (`IObjectPool<FixedSizeBuffer>`)
- `blockPoolId` (`string`)
- `timePurge` (`TimePurgePredicate`)
- `sharedDimensions` (`EventHubMonitorAggregationDimensions`)
