// Copyright (c) Richasy. All rights reserved. using System; namespace Richasy.Bili.Models.App.Other { /// /// 本地缓存基本类型. /// /// 存储的数据类型. public class LocalCache { /// /// Initializes a new instance of the class. /// /// 过期时间. /// 要存储的数据. public LocalCache(DateTimeOffset expiryTime, T data) { this.ExpiryTime = expiryTime; this.Data = data; } /// /// 过期时间. /// public DateTimeOffset ExpiryTime { get; set; } /// /// 缓存的数据. /// public T Data { get; set; } } }