lib/commands/crdt/updatemap.js
function(key, value) {
        this._removeRemove(this.registers.remove, key);
        var op = this._getOp(this.registers.set, key);
        if (op) {
            op.value = value;
        } else {
            this.registers.set.push({key: key, value: value});
        }
        return this;
    }
function(key, value) {
        this._removeRemove(this.registers.remove, key);
        var op = this._getOp(this.registers.set, key);
        if (op) {
            op.value = value;
        } else {
            this.registers.set.push({key: key, value: value});
        }
        return this;
    }
function ( key , value ) { this . _removeRemove ( this . registers . remove , key ) ; var op = this . _getOp ( this . registers . set , key ) ; if ( op ) { op . value = value ; } else { this . registers . set . push ( { key : key , value : value } ) ; } return this ; }
Set a register in a map.
@method setRegister
@param {String} key the key for the register in the map.
@param {String|Buffer} value the value for the register.
@chainable}
Set a register in a map .