namespace SafeCampus.Cache;
///
///
/// Redis缓存
///
public partial class RedisCacheService
{
///
public void HashAdd(string key, string hashKey, T value)
{
_simpleRedis.HashAdd(key, hashKey, value);
}
///
public bool HashSet(string key, Dictionary dic)
{
return _simpleRedis.HashSet(key, dic);
}
///
public int HashDel(string key, params string[] fields)
{
return _simpleRedis.HashDel(key, fields);
}
///
public List HashGet(string key, params string[] fields)
{
return _simpleRedis.HashGet(key, fields);
}
///
public T HashGetOne(string key, string field)
{
return _simpleRedis.HashGetOne(key, field);
}
///
public IDictionary HashGetAll(string key)
{
return _simpleRedis.HashGetAll(key);
}
}