Exemple #1
0
        internal static void CacheNodeHead(NodeHead head, string idKey, string pathKey)
        {
            var dependencyForPathKey = CacheDependencyFactory.CreateNodeHeadDependency(head);
            var dependencyForIdKey   = CacheDependencyFactory.CreateNodeHeadDependency(head);

            DistributedApplication.Cache.Insert(idKey, head, dependencyForIdKey);
            DistributedApplication.Cache.Insert(pathKey, head, dependencyForPathKey);
        }
Exemple #2
0
        private void CacheNodeHead(NodeHead head, string idKey, string pathKey)
        {
            var dependencyForPathKey = CacheDependencyFactory.CreateNodeHeadDependency(head);
            var dependencyForIdKey   = CacheDependencyFactory.CreateNodeHeadDependency(head);

            Cache.Insert(idKey, head, dependencyForIdKey);
            Cache.Insert(pathKey, head, dependencyForPathKey);
        }