CacheManage.cs 608 Bytes
namespace Quiz.SiteBase.Cache
{
    /// <summary>
    /// 缓存管理
    /// </summary>
    public static class CacheManage
    {
        internal static bool CacheInitCompleted { get; private set; }
        
        public static CacheTopic Topic { get; private set; }
        
        public static CacheUser User { get; set; }
        public static CacheSchool School { get; set; }

        public static void Initialize()
        {
            User=new CacheUser();
            Topic = new CacheTopic();
            School=new CacheSchool();

            CacheInitCompleted = true;
        }
    }
}