synchronized KeyValue set ( long index , String key , String value ) { incrementLastAppliedIndex ( index ) ; entries . put ( key , value ) ; return new KeyValue ( key , entries . get ( key ) ) ; }
Set a key to a value .