# GrainDirectoryOptions.MaximumCacheTTL

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.runtime/orleans.configuration.graindirectoryoptions/) | [Properties](/orleans/docs/api/csharp/microsoft.orleans.runtime/orleans.configuration.graindirectoryoptions/properties/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Runtime/Configuration/Options/GrainDirectoryOptions.cs)

```csharp
public TimeSpan MaximumCacheTTL
```

Gets or sets the maximum time, in seconds, to keep a cache entry before revalidating.
