# GrainDirectoryOptions.CachingStrategy

[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 CachingStrategyType CachingStrategy
```

Gets or sets the caching strategy to use. The options are None, which means don't cache directory entries locally; LRU, which indicates that a standard fixed-size least recently used strategy should be used; and Adaptive, which indicates that an adaptive strategy with a fixed maximum size should be used. The LRU strategy is used by default.
