// Reimplementation of the internal object access to utilize caching. protected override Info ExistsObjectInternal(string path) { return(Cache.GetObjectOrDefault(path) ?? base.ExistsObjectInternal(path)); }
// Implementation of the NavigatingConnector interface support from the parent class. // They look for their result first to the cache because they can be called multiple // times by the code in the connector, the drive provider or the originating cmdlet. protected override WebInfo GetWeb(string path) { return((WebInfo)Cache.GetObjectOrDefault(path) ?? GetWebDirectly(path)); }
// Implementation of the CachingConnector and helper caching methods. public override void ClearCache(bool includeRoot) { Cache.Invalidate(); base.ClearCache(includeRoot); }