# RedisGrainDirectoryOptions.EntryExpiry

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.graindirectory.redis/orleans.configuration.redisgraindirectoryoptions/) | [Properties](/orleans/docs/api/csharp/microsoft.orleans.graindirectory.redis/orleans.configuration.redisgraindirectoryoptions/properties/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Redis/Orleans.GrainDirectory.Redis/Options/RedisGrainDirectoryOptions.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 duplicate activations in the cluster.
