namespace Jiaowu.Api.Infrastructure.Caching;

public sealed class AppCacheOptions
{
    public const string SectionName = "Cache";

    public bool Enabled { get; set; } = true;
    public string KeyPrefix { get; set; } = "jiaowu:v1";
    public int ReferenceExpirationMinutes { get; set; } = 30;
    public int ReferenceLocalExpirationSeconds { get; set; } = 120;
    public int TimetableExpirationMinutes { get; set; } = 10;
    public int TimetableLocalExpirationSeconds { get; set; } = 30;
    public int AnalyticsExpirationMinutes { get; set; } = 3;
    public int AnalyticsLocalExpirationSeconds { get; set; } = 30;
    public int MaximumPayloadKilobytes { get; set; } = 2048;
}
