RedisFactory.cs 510 B

12345678910111213141516171819202122
  1. using OASystem.RedisRepository.RedisAsyncHelper;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. namespace OASystem.RedisRepository
  8. {
  9. public class RedisFactory
  10. {
  11. /// <summary>
  12. /// 外部访问redis入口,暂时只暴露异步方法
  13. /// </summary>
  14. /// <returns></returns>
  15. public static IRedisHelper CreateRedisRepository()
  16. {
  17. return new RedisHelper();
  18. }
  19. }
  20. }