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.
26 lines
913 B
26 lines
913 B
namespace Znyc.CloudCar.Auth.Manual
|
|
{
|
|
/// <summary>
|
|
/// 手动缓存调用
|
|
/// </summary>
|
|
public static partial class ManualDataCache
|
|
{
|
|
#pragma warning disable CS0414 // 字段“ManualDataCache._instance”已被赋值,但从未使用过它的值
|
|
#pragma warning disable CS8625 // 无法将 null 字面量转换为非 null 的引用类型。
|
|
private static readonly IManualCacheManager _instance = null;
|
|
#pragma warning restore CS8625 // 无法将 null 字面量转换为非 null 的引用类型。
|
|
#pragma warning restore CS0414 // 字段“ManualDataCache._instance”已被赋值,但从未使用过它的值
|
|
|
|
|
|
/// <summary>
|
|
/// 静态实例,外部可直接调用
|
|
/// </summary>
|
|
public static IManualCacheManager Instance
|
|
{
|
|
get
|
|
{
|
|
return new RedisCacheManager();
|
|
}
|
|
}
|
|
}
|
|
}
|