RedisKeyHelperAsync.cs 814 B

1234567891011121314151617181920212223242526272829303132
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. namespace OASystem.RedisRepository.RedisAsyncHelper
  7. {
  8. internal partial class RedisHelper
  9. {
  10. public async Task<bool> KeyDeleteAsync(string key)
  11. {
  12. return await _client.KeyDeleteAsync(key);
  13. }
  14. public async Task<bool> KeyExpireInAsync(string key, TimeSpan timeout)
  15. {
  16. return await _client.KeyExpireAsync(key, timeout);
  17. }
  18. public async Task<bool> KeyRenameAsync(string key, string newKey)
  19. {
  20. return await _client.KeyRenameAsync(key, newKey);
  21. }
  22. public async Task<bool> KeyExistsAsync(string key)
  23. {
  24. return await _client.KeyExistsAsync(key);
  25. }
  26. }
  27. }