/// <summary> /// for HSet, HSetNX command /// </summary> public RedisRequest(string hashId, byte[] key, byte[] value, RedisRequestType type) { this.HashId = hashId; this.Key = key; this.Value = value; this.Type = type; }
public void Set(byte[][] keys, string sha1, int numberOfKeysInArg, RedisRequestType type) { this.Keys = keys; this.Sha1 = sha1; this.NumberKeysInArgs = numberOfKeysInArg; this.Type = type; }
public void Set(string hashId, byte[][] keys, byte[][] values, RedisRequestType type) { this.HashId = hashId; this.Keys = keys; this.Values = values; this.Type = type; }
public RedisBatchRequest(RedisCommand command, RedisCommandExpect expectation, string okIf = null, RedisRequestType requestType = RedisRequestType.Batch) : base(command, expectation, okIf, requestType) { if (requestType - RedisConstants.RedisBatchBase < 0) { throw new RedisException("Request type must be one of batch types", RedisErrorCode.InvalidParameter); } }
protected RedisRequest(RedisCommand command, RedisCommandExpect expectation, string okIf = null, object stateObject = null, RedisRequestType requestType = RedisRequestType.Default) { m_OKIf = okIf; m_Expectation = expectation; m_Command = command; m_StateObject = stateObject; m_RequestType = requestType; m_CreationTime = DateTime.UtcNow; }
protected RedisRequest(RedisCommand command, RedisCommandExpect expectation, string okIf = null, RedisRequestType requestType = RedisRequestType.Default) : base(command, expectation, okIf, null, requestType) { }
/// <summary> /// for HMGet command and HDel Commands /// </summary> public RedisRequest(string hashId, byte[][] keys, RedisRequestType type) { this.HashId = hashId; this.Keys = keys; this.Type = type; }
public void Set(string hashId, RedisRequestType type) { this.HashId = hashId; this.Type = type; }
public void Set(string hashId, byte[] key, RedisRequestType type) { this.HashId = hashId; this.Key = key; this.Type = type; }