protected function fetch($items, $from, $to = null, $uid = false, $tag = self::TAG_FETCH)
{
if (is_array($from)) {
$set = implode(',', $from);
} elseif ($to === null) {
$set = (int) $from;
} elseif ($to === INF) {
$set = (int) $from . ':*';
} else {
$set = (int) $from . ':' . (int) $to;
}
$this->writeln($tag . ($uid ? ' UID' : '') . " FETCH {$set} " . $this->escapeList((array) $items));
}