32 lines
753 B
C#
32 lines
753 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace YLErp.Cache
|
|
{
|
|
/// <summary>
|
|
/// 缓存配置
|
|
/// </summary>
|
|
public class CacheConfig
|
|
{
|
|
/// <summary>
|
|
/// 是否可用
|
|
/// </summary>
|
|
public bool Enable { get; set; } = false;
|
|
/// <summary>
|
|
/// 连接字符串
|
|
/// </summary>
|
|
public string ConnectionString { get; set; }
|
|
/// <summary>
|
|
/// 数据库号
|
|
/// </summary>
|
|
public int DataBaseNum { get; set; } = 0;
|
|
/// <summary>
|
|
/// 缓存key的自定义前缀(Option)
|
|
/// </summary>
|
|
public string CustomPrefix { get; set; }
|
|
}
|
|
}
|