Пример #1
0
        public async Task <BlobDBResponsePacket> Clear(BlobDatabase database)
        {
            var clearCommand = new BlobDBCommandPacket()
            {
                Token    = GenerateToken(),
                Database = database,
                Command  = BlobCommand.Clear
            };

            return(await Send(clearCommand));
        }
Пример #2
0
        public async Task <BlobDBResponsePacket> Delete(BlobDatabase database, byte[] key)
        {
            var deleteCommand = new BlobDBCommandPacket()
            {
                Token    = GenerateToken(),
                Database = database,
                Command  = BlobCommand.Delete,
                Key      = key,
            };

            return(await Send(deleteCommand));
        }
Пример #3
0
        public async Task <BlobDBResponsePacket> Insert(BlobDatabase database, byte[] key, byte[] value)
        {
            var insertCommand = new BlobDBCommandPacket()
            {
                Token    = GenerateToken(),
                Database = database,
                Command  = BlobCommand.Insert,
                Key      = key,
                Value    = value
            };

            return(await Send(insertCommand));
        }
Пример #4
0
 private async Task <BlobDBResponsePacket> Send(BlobDBCommandPacket command)
 {
     return(await _pebble.SendBlobDBMessage(command));
 }