public String nonPipelineZRANGE ( String key , int max_score ) { StringBuilder sb = new StringBuilder ( ) ; // Return all elements Set < String > returnEntries = this . jedisClient . get ( ) . zrange ( key , 0 , - 1 ) ; if ( returnEntries . isEmpty ( ) ) { logger . error ( "The number of entries in the sorted set are less than the number of entries written" ) ; return null ; } returnEntries . forEach ( sb :: append ) ; return sb . toString ( ) ; }
Exercising ZRANGE to receive all keys between 0 and MAX_SCORE