public BranchRedisKey GetKey() { if (_redisKey == default) { _redisKey = new BranchRedisKey(BranchRedisKeyEnum.Sort, _propertyName); } return(_redisKey); }
public BranchRedisKey GetKey(string funtionReturnValue) { if (_redisKey == default) { _redisKey = new BranchRedisKey(BranchRedisKeyEnum.Group, funtionReturnValue); } return(_redisKey); }
public BranchRedisKey GetKey() { if (_redisKey == default) { _redisKey = new BranchRedisKey(BranchRedisKeyEnum.Sort, _functionName); } return(_redisKey); }
public BranchRedisKey GetKey(T entity) { if (_redisKey == default) { _redisKey = new BranchRedisKey(BranchRedisKeyEnum.Group, GetFunctionGroupKey(entity)); } return(_redisKey); }
public BranchRedisKey GetKey(string propertyValue) { BranchRedisKey redisKey; if (_propertyName == "Id") { redisKey = new BranchRedisKey(BranchRedisKeyEnum.Data, propertyValue); } else { redisKey = new BranchRedisKey(BranchRedisKeyEnum.Group, _propertyName, propertyValue); } return(redisKey); }
public BranchRedisKey GetKey() { if (_redisKey == default) { if (_propertyName == "Id") { _redisKey = new BranchRedisKey(BranchRedisKeyEnum.Data, "{propertyValue}"); } else { _redisKey = new BranchRedisKey(BranchRedisKeyEnum.Group, _propertyName, "{propertyValue}"); } } return(_redisKey); }
public BranchRedisKey GetKey(string propertyValue) { if (_redisKey == default) { if (_propertyName == "Id") { _redisKey = new BranchRedisKey(BranchRedisKeyEnum.Data, propertyValue); } else { _redisKey = new BranchRedisKey(BranchRedisKeyEnum.Group, _propertyName, propertyValue); } } _redisKey.SetValue(propertyValue); return(_redisKey); }
public BranchRedisKey GetKey(T entity) { object propertyValue = entity.GetType().GetProperty(_propertyName).GetValue(entity); BranchRedisKey redisKey; if (_propertyName == "Id") { redisKey = new BranchRedisKey(BranchRedisKeyEnum.Data, propertyValue.ToString()); } else { redisKey = new BranchRedisKey(BranchRedisKeyEnum.Group, _propertyName, propertyValue.ToString()); } redisKey.SetValue(propertyValue.ToString()); return(redisKey); }