# IQueueCache.TryGetCacheCursor(StreamId, StreamSequenceToken?)

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

[Source](https://github.com/dotnet/orleans/blob/1644940b035c7bdf215a4fd7135757c06bcfe9ec/src/Orleans.Streaming/QueueAdapters/IQueueCache.cs#L53-L61)

```csharp
public virtual QueueCacheCursorResult<IQueueCacheCursor> TryGetCacheCursor(StreamId streamId, StreamSequenceToken? token)
```

Attempts to acquire a stream message cursor at the location indicated by the provided token.

### Parameters

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

### Returns

A successful result containing the acquired cursor, or a cache-miss result containing the unavailable position and current cache bounds.
