Exemple #1
0
 public void DeleteToken()
 {
     if (tokenIsProvided())
     {
         storage.Delete("token");
         storage.Delete("tokenexpiry");
         storage.Delete("tokendatetime");
     }
 }
Exemple #2
0
        /// <summary>
        /// 刪除Cache 相依的其他分頁
        /// </summary>
        protected override void RemoveDependancyCache()
        {
            var pageKeys = _sectionCacheStorage.Get(SectionKey);

            if (pageKeys != null)
            {
                foreach (var pageKey in pageKeys)
                {
                    if (pageKey == StorageKey)
                    {
                        continue;
                    }

                    _cacheStorage.Delete(pageKey);
                }

                _sectionCacheStorage.Delete(SectionKey);
            }
        }
Exemple #3
0
        /// <summary>
        /// 刪除Cache內的資料
        /// </summary>
        public void Delete()
        {
            _cacheStorage.Delete(StorageKey);

            RemoveDependancyCache();
        }