Пример #1
0
 /// <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;
 }
Пример #2
0
 public void Set(byte[][] keys, string sha1, int numberOfKeysInArg, RedisRequestType type)
 {
     this.Keys             = keys;
     this.Sha1             = sha1;
     this.NumberKeysInArgs = numberOfKeysInArg;
     this.Type             = type;
 }
Пример #3
0
 public void Set(string hashId, byte[][] keys, byte[][] values, RedisRequestType type)
 {
     this.HashId = hashId;
     this.Keys   = keys;
     this.Values = values;
     this.Type   = type;
 }
Пример #4
0
 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);
     }
 }
Пример #5
0
 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;
 }
Пример #6
0
 protected RedisRequest(RedisCommand command, RedisCommandExpect expectation,
                        string okIf = null, RedisRequestType requestType = RedisRequestType.Default)
     : base(command, expectation, okIf, null, requestType)
 {
 }
Пример #7
0
 /// <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;
 }
Пример #8
0
 public void Set(string hashId, RedisRequestType type)
 {
     this.HashId = hashId;
     this.Type   = type;
 }
Пример #9
0
 public void Set(string hashId, byte[] key, RedisRequestType type)
 {
     this.HashId = hashId;
     this.Key    = key;
     this.Type   = type;
 }