Skip to content

Commit a404338

Browse files
Bug fix: using XREAD command instead of XRANGE (#82)
Co-authored-by: Tomasz Cieślar <[email protected]>
1 parent d991b67 commit a404338

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/RedisClient/Command/Traits/Version5x0/StreamsCommandsTrait.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -282,9 +282,10 @@ public function xread($keys, $ids, $count = null, $block = null) {
282282
if (isset($block)) {
283283
$params[] = ['BLOCK', $block];
284284
}
285+
$params[] = 'STREAMS';
285286
$params[] = $keys;
286287
$params[] = (array)$ids;
287-
return $this->returnCommand(['XRANGE'], $keys, $params);
288+
return $this->returnCommand(['XREAD'], $keys, $params);
288289
}
289290

290291
/**

0 commit comments

Comments
 (0)