/// <summary> /// 缓存Key /// </summary> /// <param name="id"></param> /// <returns></returns> public virtual string GetKey(string id) { if (!_cacheOpen) { return(""); } return(RedisConfig.GetKey(ClsName, "item", id)); }
/// <summary> /// 重写获取key-以positionId为key /// </summary> /// <param name="positionId"></param> /// <returns></returns> public override string GetKey(string positionId) { return(RedisConfig.GetKey(_clsName, "item", positionId)); }
/// <summary> /// 重写获取key-以Role为key /// </summary> /// <param name="roleId"></param> /// <returns></returns> public override string GetKey(string roleId) { return(RedisConfig.GetKey(_clsName, "item", roleId)); }
/// <summary> /// 重写获取key-以Department为key /// </summary> /// <param name="roleId"></param> /// <returns></returns> public override string GetKey(string departmentId) { return(RedisConfig.GetKey(_clsName, "item", departmentId)); }