Beispiel #1
0
        /// <summary>
        /// Clears the cache of all items.
        /// </summary>
        public async Task Refresh()
        {
            Cache.ClearAll();

            await CacheRefreshed.Raise();
        }
Beispiel #2
0
        /// <summary>
        /// Clears the cache of all items.
        /// </summary>
        public static void Refresh()
        {
            Cache.Current.ClearAll();

            CacheRefreshed?.Invoke(typeof(Database), EventArgs.Empty);
        }