Пример #1
0
        // Reimplementation of the internal object access to utilize caching.

        protected override Info ExistsObjectInternal(string path)
        {
            return(Cache.GetObjectOrDefault(path) ?? base.ExistsObjectInternal(path));
        }
Пример #2
0
        // 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));
        }
Пример #3
0
        // Implementation of the CachingConnector and helper caching methods.

        public override void ClearCache(bool includeRoot)
        {
            Cache.Invalidate();
            base.ClearCache(includeRoot);
        }