// // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using System.Threading; using System.Threading.Tasks; namespace Microsoft.SqlTools.ResourceProvider.Core { /// /// Defines a class as cachable /// public interface ICacheable { /// /// Clears the cache for current user /// /// True if cache refreshed successfully. Otherwise returns false Task ClearCacheAsync(); /// /// Updates the cache for current selected subscriptions /// /// The new cached data Task RefreshCacheAsync(CancellationToken cancellationToken); } }