public void ClearStrCache() { var cache = new StringCache("Test:Str"); int cnt = cache.Count(); if (cnt > 0) { cache.Clear(); } }