兼容win7版应用
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
816 B

using Dapper.Contrib.Extensions;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AIK.Models.SQLiteModels
{
[Dapper.Contrib.Extensions.Table("CacheItems")]
public class CacheItem
{
[ExplicitKey] // 因为Key是字符串,不是自增ID
public string CacheKey { get; set; }
public string Data { get; set; }
public string DataType { get; set; }
public DateTime CreatedAt { get; set; }
public DateTime ExpiresAt { get; set; }
public DateTime LastAccessed { get; set; }
public int AccessCount { get; set; }
public string Metadata { get; set; } // 存储额外信息,如数据大小等
}
}