Exemple #1
0
        public CommandResult ClearCache()
        {
            CommandResult result = new CommandResult();
            StringBuilder sb     = new StringBuilder();

            foreach (CacheProvider item in CacheProviderConfigSection.GetServiceProvider())
            {
                item.ClearCathe();
            }
            result.Message = "清除成功";
            result.Result  = true;
            return(result);
        }
Exemple #2
0
        public CommandResult GetCacheSummary()
        {
            CommandResult result = new CommandResult();
            StringBuilder sb     = new StringBuilder();

            foreach (CacheProvider item in CacheProviderConfigSection.GetServiceProvider())
            {
                sb.AppendLine(item.GetCatheSummary());
            }
            result.Message = sb.ToString();
            result.Result  = true;
            return(result);
        }