public String nonpipelineWrite ( String key , DataGenerator dataGenerator ) { String value = key + "__" + dataGenerator . getRandomValue ( ) + "__" + key ; String result = this . jedisClient . get ( ) . set ( key , value ) ; if ( ! "OK" . equals ( result ) ) { logger . error ( "SET_ERROR: GOT " + result + " for SET operation" ) ; throw new RuntimeException ( String . format ( "DynoJedis: value %s for SET operation is NOT VALID" , value , key ) ) ; } return result ; }
a simple write without a pipeline