예제 #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));
 }