コード例 #1
0
        public static void Delete(string storageName, IList <CacheVariable> variables)
        {
            var storage = ServerCacheFactory.CreateStorage(storageName);

            foreach (var variable in variables)
            {
                storage.Delete(variable);
            }
        }
コード例 #2
0
        public static void Delete(IList <CacheVariable> variables)
        {
            var storages = ServerCacheFactory.CreateStorages();

            foreach (var storage in storages)
            {
                foreach (var variable in variables)
                {
                    storage.Delete(variable);
                }
            }
        }
コード例 #3
0
        public static void Delete(string url)
        {
            var storages = ServerCacheFactory.CreateStorages();

            foreach (var storage in storages)
            {
                storage.Delete(new CacheVariable(url, HttpCompressionType.None, _pc));
                storage.Delete(new CacheVariable(url, HttpCompressionType.None, _mobile));

                storage.Delete(new CacheVariable(url, HttpCompressionType.GZip, _pc));
                storage.Delete(new CacheVariable(url, HttpCompressionType.GZip, _mobile));

                storage.Delete(new CacheVariable(url, HttpCompressionType.Deflate, _pc));
                storage.Delete(new CacheVariable(url, HttpCompressionType.Deflate, _mobile));
            }
        }