コード例 #1
0
        public static void RemoveCacheIndexEntry(Guid id)
        {
            var entry = GetCacheIndexEntry(id);

            if (entry != null)
            {
                CfCacheIndex.Remove(entry);
            }
        }
コード例 #2
0
 /// <summary>
 /// Called when we want to manually force a cache refresh
 /// </summary>
 public static void RefreshCacheIndex()
 {
     CfCacheIndex.Refresh();
 }
コード例 #3
0
 public static void UpdateIndexEntryInCache(CfCacheIndexEntry entry)
 {
     CfCacheIndex.Update(entry);
 }
コード例 #4
0
 public static CfCacheIndexEntry GetCacheIndexEntry(Guid id)
 {
     return(CfCacheIndex.Get(id));
 }
コード例 #5
0
        //protected static CfCacheIndex CI { get; set; }

        /// <summary>
        /// Static constructor to force some caching to occur on application load
        /// </summary>
        //public static void InitializeAllCacheItems()
        //{
        //    CPC
        //}

        public static void AddIndexEntryToCache(CfCacheIndexEntry entry)
        {
            CfCacheIndex.Add(entry);
        }