# RedisStorageOptions.GetStorageKey

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.persistence.redis/orleans.persistence.redisstorageoptions/) | [Properties](/orleans/docs/api/csharp/microsoft.orleans.persistence.redis/orleans.persistence.redisstorageoptions/properties/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Redis/Orleans.Persistence.Redis/Providers/RedisStorageOptions.cs)

```csharp
public Func<string, GrainId, RedisKey>? GetStorageKey
```

Gets the Redis key for the provided grain type and grain identifier. If not set, the default implementation will be used, which is equivalent to `{ServiceId}/state/{grainId}/{grainType}`.
