Software_Engineering_Field_.../SiteManagementSystem(Softwa.../Interface/ICacheService.cs

13 lines
472 B
C#
Raw Normal View History

namespace SiteManagementSystem_SoftwareEngineering_.Interface
{
public interface ICacheService<TCategoryName>
{
public Action<string>? ExpiredCallbackFunc { set; }
public int Capacity { get; set; }
public Task<bool> SetAsync(string key, string value, TimeSpan? expiry = null);
public Task<string?> GetAsync(string key);
public Task<bool> RemoveAsync(string key);
public Task<bool> RemoveLatestKeyAsync();
}
}