2024-02-02 17:14:41 +08:00
|
|
|
|
namespace MesETL.App.Options;
|
2024-01-29 09:29:16 +08:00
|
|
|
|
|
2024-12-10 14:03:09 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Redis缓存选项
|
|
|
|
|
/// </summary>
|
2024-01-29 09:29:16 +08:00
|
|
|
|
public class RedisCacheOptions
|
|
|
|
|
{
|
2024-12-10 14:03:09 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Redis连接字符串
|
|
|
|
|
/// </summary>
|
2024-01-29 09:29:16 +08:00
|
|
|
|
public string? Configuration { get; init; }
|
2024-12-10 14:03:09 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Redis实例名称
|
|
|
|
|
/// </summary>
|
2024-01-29 09:29:16 +08:00
|
|
|
|
public string InstanceName { get; init; } = "";
|
2024-12-10 14:03:09 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// 使用的数据库序号
|
|
|
|
|
/// </summary>
|
2024-01-29 09:29:16 +08:00
|
|
|
|
public int Database { get; init; } = 0;
|
|
|
|
|
}
|