/// <summary>
 /// 触发缓存改变事件。
 /// </summary>
 /// <param name="e"></param>
 protected void OnCacheChanged(CacheChangedEventArgs e)
 {
     CacheChangedEventHandler handler = this.CacheChanged;
     if (handler != null)
     {
         handler(e);
     }
 }
 /// <summary>
 /// 触发缓存改变事件。
 /// </summary>
 /// <param name="type"></param>
 /// <param name="item"></param>
 protected void OnCacheChanged(CacheChangedType type, ICacheItem item)
 {
     CacheChangedEventArgs e = new CacheChangedEventArgs();
     e.ChangedType = type;
     if (item != null)
     {
         e.Item = item;
         e.ItemKey = item.ItemKey;
     }
     this.OnCacheChanged(e);
 }