KGETRANGE

Return keys in specified range.

Request arguments

Response

M arguments with the existing keys

Example

Get keys in the range [:bar] (i.e. all up bar, excluded) in mytable (returns: [b]):

REQUEST                               RESPONSE

@12345678                             @12345678    
*6                                    *1    
$4                                    $1    
KGETRANGE                             b    
$7                                    
mytable                               
$-1    
$-1    
$3                                    
bar    
$1    
0