平安校园
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 
 
 
 
 

46 linhas
1.0 KiB

  1. namespace SafeCampus.Cache;
  2. /// <summary>
  3. /// <inheritdoc cref="ISimpleCacheService"/>
  4. /// Redis缓存
  5. /// </summary>
  6. public partial class RedisCacheService
  7. {
  8. /// <inheritdoc/>
  9. public void HashAdd<T>(string key, string hashKey, T value)
  10. {
  11. _simpleRedis.HashAdd<T>(key, hashKey, value);
  12. }
  13. /// <inheritdoc/>
  14. public bool HashSet<T>(string key, Dictionary<string, T> dic)
  15. {
  16. return _simpleRedis.HashSet<T>(key, dic);
  17. }
  18. /// <inheritdoc/>
  19. public int HashDel<T>(string key, params string[] fields)
  20. {
  21. return _simpleRedis.HashDel<T>(key, fields);
  22. }
  23. /// <inheritdoc/>
  24. public List<T> HashGet<T>(string key, params string[] fields)
  25. {
  26. return _simpleRedis.HashGet<T>(key, fields);
  27. }
  28. /// <inheritdoc/>
  29. public T HashGetOne<T>(string key, string field)
  30. {
  31. return _simpleRedis.HashGetOne<T>(key, field);
  32. }
  33. /// <inheritdoc/>
  34. public IDictionary<string, T> HashGetAll<T>(string key)
  35. {
  36. return _simpleRedis.HashGetAll<T>(key);
  37. }
  38. }