# RedisClusteringOptions.EntryExpiry

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

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

```csharp
public TimeSpan? EntryExpiry
```

Entry expiry, null by default. A value should be set ONLY for ephemeral environments (like in tests). Setting a value different from null will cause entries to be deleted after some period of time.
