src/Client.php
public function getKeysWithPrefix($prefix)
    {
        $prefix = trim($prefix);
        if (!$prefix) {
            return [];
        }
        $lastIndex = strlen($prefix) - 1;
        $lastChar = $prefix[$lastIndex];
        $nextAsciiCode = ord($lastChar) + 1;
        $rangeEnd = $prefix;
        $rangeEnd[$lastIndex] = chr($nextAsciiCode);

        return $this->get($prefix, ['range_end' => $rangeEnd]);
    }
public function getKeysWithPrefix($prefix)
    {
        $prefix = trim($prefix);
        if (!$prefix) {
            return [];
        }
        $lastIndex = strlen($prefix) - 1;
        $lastChar = $prefix[$lastIndex];
        $nextAsciiCode = ord($lastChar) + 1;
        $rangeEnd = $prefix;
        $rangeEnd[$lastIndex] = chr($nextAsciiCode);

        return $this->get($prefix, ['range_end' => $rangeEnd]);
    }
public function getKeysWithPrefix ( $ prefix ) { $ prefix = trim ( $ prefix ) ; if ( ! $ prefix ) { return [ ] ; } $ lastIndex = strlen ( $ prefix ) - 1 ; $ lastChar = $ prefix [ $ lastIndex ] ; $ nextAsciiCode = ord ( $ lastChar ) + 1 ; $ rangeEnd = $ prefix ; $ rangeEnd [ $ lastIndex ] = chr ( $ nextAsciiCode ) ; return $ this -> get ( $ prefix , [ 'range_end' => $ rangeEnd ] ) ; }
get all keys with prefix

@param  string $prefix
@return array
@throws \GuzzleHttp\Exception\BadResponseException
get all keys with prefix