.net清空所有Cache的實現(xiàn)代碼
來源:懂視網(wǎng)
責(zé)編:小采
時間:2020-11-27 22:44:11
.net清空所有Cache的實現(xiàn)代碼
.net清空所有Cache的實現(xiàn)代碼: 代碼如下:IDictionaryEnumerator CacheEnum = Cache.GetEnumerator(); while (CacheEnum.MoveNext()) { Cache.Remove(CacheEnum.Key.ToString()); } Response.Write(緩存清空成功);
導(dǎo)讀.net清空所有Cache的實現(xiàn)代碼: 代碼如下:IDictionaryEnumerator CacheEnum = Cache.GetEnumerator(); while (CacheEnum.MoveNext()) { Cache.Remove(CacheEnum.Key.ToString()); } Response.Write(緩存清空成功);

代碼如下:
IDictionaryEnumerator CacheEnum = Cache.GetEnumerator();
while (CacheEnum.MoveNext())
{
Cache.Remove(CacheEnum.Key.ToString());
}
Response.Write("緩存清空成功");
聲明:本網(wǎng)頁內(nèi)容旨在傳播知識,若有侵權(quán)等問題請及時與本網(wǎng)聯(lián)系,我們將在第一時間刪除處理。TEL:177 7030 7066 E-MAIL:11247931@qq.com
.net清空所有Cache的實現(xiàn)代碼
.net清空所有Cache的實現(xiàn)代碼: 代碼如下:IDictionaryEnumerator CacheEnum = Cache.GetEnumerator(); while (CacheEnum.MoveNext()) { Cache.Remove(CacheEnum.Key.ToString()); } Response.Write(緩存清空成功);