30 lines
625 B
C#
30 lines
625 B
C#
using FreeRedis;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace JiShe.CollectBus.FreeRedisProvider;
|
|
|
|
public interface IFreeRedisProviderService
|
|
{
|
|
/// <summary>
|
|
/// 默认客户端
|
|
/// </summary>
|
|
IRedisClient FreeRedis { get; }
|
|
|
|
/// <summary>
|
|
/// 获取客户端
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
IRedisClient GetClient();
|
|
|
|
/// <summary>
|
|
/// 切换Redis数据库
|
|
/// </summary>
|
|
/// <param name="index"></param>
|
|
/// <returns></returns>
|
|
IRedisClient GetDatabase(int index = 0);
|
|
}
|