//
namespace SafeCampus.Cache;
///
/// 缓存服务
///
public partial interface ISimpleCacheService
{
///
/// 添加一条数据到HashMap
///
///
/// 键
/// hash列表里的Key
/// 值
void HashAdd(string key, string hashKey, T value);
///
/// 添加多条数据到HashMap
///
///
/// 键
/// 键值对字典
///
bool HashSet(string key, Dictionary dic);
///
/// 从HashMap中删除数据
///
///
/// 键
/// hash键列表
/// 执行结果
int HashDel(string key, params string[] fields);
///
/// 根据键获取hash列表中的值
///
///
/// 键
/// hash键列表
/// 数据列表
List HashGet(string key, params string[] fields);
///
/// 根据键获取hash列表中的值
///
///
/// 键
/// hash键
///
T HashGetOne(string key, string field);
///
/// 获取所有键值对
///
///
/// 键
/// 数据字典
IDictionary HashGetAll(string key);
}