# SimpleQueueCache.GetCacheCursor(StreamId, StreamSequenceToken?)

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleans.providers.streams.common.simplequeuecache/) | [Methods](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleans.providers.streams.common.simplequeuecache/methods/)

[Source](https://github.com/dotnet/orleans/blob/b7a9e3e1c9c54b3cec3a467c5734bf7744541bcf/src/Orleans.Streaming/Common/SimpleCache/SimpleQueueCache.cs#L147-L149)

```csharp
public virtual IQueueCacheCursor GetCacheCursor(StreamId streamId, StreamSequenceToken? token)
```

Acquire a stream message cursor. This can be used to retrieve messages from the cache starting at the location indicated by the provided token.

### Parameters

- `streamId` (`StreamId`): The stream identifier.
- `token` (`StreamSequenceToken?`): The token.

### Returns

The queue cache cursor.
