code: func (db *DB) Set(key []byte, value []byte) error {
  	if err := checkKeySize(key); err != nil {
  		return err
  	} else if err := checkValueSize(value); err != nil {
  		return err
  	}
  
  	var err error
  	key = db.encodeKVKey(key)
  
  	t := db.kvBatch
  
  	t.Lock()
  	defer t.Unlock()
  
  	t.Put(key, value)
  
  	err = t.Commit()
  
  	return err
  }
docs: // Set sets the data.