public void DeleteToken() { if (tokenIsProvided()) { storage.Delete("token"); storage.Delete("tokenexpiry"); storage.Delete("tokendatetime"); } }
/// <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); } }
/// <summary> /// 刪除Cache內的資料 /// </summary> public void Delete() { _cacheStorage.Delete(StorageKey); RemoveDependancyCache(); }