RedisSetHelper.cs 473 B

1234567891011121314151617181920
  1. using OASystem.RedisRepository.CommonHelper;
  2. using StackExchange.Redis;
  3. using System;
  4. using System.Collections.Generic;
  5. using System.Linq;
  6. using System.Text;
  7. using System.Threading.Tasks;
  8. namespace OASystem.RedisRepository.RedisAsyncHelper
  9. {
  10. internal partial class RedisHelper
  11. {
  12. public async Task<bool> SetAddAsync<T>(string key, T value)
  13. {
  14. return await _client.SetAddAsync(key, SerializeHelper.Serialize(value));
  15. }
  16. }
  17. }