private DynamicCacheInner <TEntity> GetCacheObj()
        {
            DynamicCacheInner <TEntity> cacheObj = DynamicCache.Instance.GetData <DynamicCacheInner <TEntity> >(_CacheKey);

            if (cacheObj == null)
            {
                cacheObj      = new DynamicCacheInner <TEntity>();
                cacheObj.Item = LoadCacheItem();

                //加入动态缓存
                DynamicCache.Instance.Add(_CacheKey, cacheObj, DateTime.Now.Add(GetCacheDuration()));
            }

            return(cacheObj);
        }
        /// <summary>
        /// 获取缓存项
        /// </summary>
        public TEntity GetItem()
        {
            DynamicCacheInner <TEntity> cacheObj = GetCacheObj();

            return(cacheObj.Item);
        }