RedisClientList.cs 949 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. using FreeRedis;
  2. namespace DBHelper.Redis
  3. {
  4. /// <summary>
  5. /// 链接集合
  6. /// </summary>
  7. public class RedisClientList
  8. {
  9. /// <summary>
  10. /// 连接集合
  11. /// </summary>
  12. /// <param name="key">连接标识</param>
  13. /// <param name="client">连接</param>
  14. /// <param name="connectionConfig">连接字符串</param>
  15. public RedisClientList(string key, RedisClient client, string connectionConfig)
  16. {
  17. Key = key;
  18. Client = client;
  19. ConnectionConfig = connectionConfig;
  20. }
  21. /// <summary>
  22. /// 连接标识
  23. /// </summary>
  24. public string Key { get; set; }
  25. /// <summary>
  26. /// 连接
  27. /// </summary>
  28. public RedisClient Client { get; set; }
  29. /// <summary>
  30. /// 连接字符串
  31. /// </summary>
  32. public string ConnectionConfig { get; set; }
  33. }
  34. }