ies8kg
Last Updated: February 25, 2016
·
1.042K
· 19nine78

how to disable RavenDB's caching

Want to disable RavenDB's caching? Useful in determining the first-hit performance of a query.

Store = new DocumentStore { ConnectionStringName = "RavenDB" };
Store.Conventions.ShouldCacheRequest = (url) => false;
Store.Initialize();