private long HSetCore(byte[] key, byte[] field, byte[] value)
        {
            using var connection = new RedisConnection(_connectionSettings);
            var command = new HSet(connection.GetStream(), key, field, value);

            return(command.Execute());
        }
        private async Task <long> HSetCoreAsync(byte[] key, byte[] field, byte[] value)
        {
            using var connection = new RedisConnection(_connectionSettings);
            var command = new HSet(connection.GetStream(), key, field, value);

            return(await command.ExecuteAsync());
        }
Exemplo n.º 3
0
 internal Instance(VisQuery outer, ref int bit)
 {
     this.outer      = outer;
     this.applicable = new HSet <VisNode>();
     this.bit        = ((int)1) << bit;
     this.bitNumber  = (byte)bit;
     bit++;
 }
Exemplo n.º 4
0
 internal Instance(VisQuery outer, ref int bit)
 {
     this.outer      = outer;
     this.applicable = new HSet <VisNode>();
     this.bit        = (long)(1 << (bit & 31));
     this.bitNumber  = (byte)bit;
     bit             = bit + 1;
 }
Exemplo n.º 5
0
 protected ODBList()
 {
     this.hashSet = new HSet <T>();
 }
Exemplo n.º 6
0
 internal Instance(VisQuery outer, ref int bit)
 {
     this.outer = outer;
     this.applicable = new HSet<VisNode>();
     this.bit = (long)(1 << (bit & 31));
     this.bitNumber = (byte)bit;
     bit = bit + 1;
 }