// Copyright (c) Microsoft Corporation // The Microsoft Corporation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. namespace Wox.Infrastructure.Storage { public interface IStorage { /// /// Saves the data /// /// data to be saved void Save(T data); /// /// Attempts to load data, otherwise it will return the default provided /// /// default data value /// The loaded data or default T TryLoad(T defaultData); } }