Example #1
0
        public static void RemoveCacheIndexEntry(Guid id)
        {
            var entry = GetCacheIndexEntry(id);

            if (entry != null)
            {
                CfCacheIndex.Remove(entry);
            }
        }
Example #2
0
 /// <summary>
 /// Called when we want to manually force a cache refresh
 /// </summary>
 public static void RefreshCacheIndex()
 {
     CfCacheIndex.Refresh();
 }
Example #3
0
 public static void UpdateIndexEntryInCache(CfCacheIndexEntry entry)
 {
     CfCacheIndex.Update(entry);
 }
Example #4
0
 public static CfCacheIndexEntry GetCacheIndexEntry(Guid id)
 {
     return(CfCacheIndex.Get(id));
 }
Example #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);
        }