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