Skip to content

Commit f7b7c23

Browse files
authored
Merge pull request #163 from xav-developer/fix/many
Fix: many
2 parents e57e856 + 513d5d3 commit f7b7c23

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ The format is based on [Keep a Changelog][keepachangelog] and this project adher
2020
- The "withHeader" method of the "\Spiral\RoadRunner\Jobs\Task\WritableHeadersInterface" interface expects the type "string|iterable", "int" is passed
2121
- Fixed the `$ttl` in the `increment` method
2222
- The `forever` method passed `$seconds` as 0, `Spiral\RoadRunner\KeyValue` summed `timestamp + 0`, and `forever` was not `forever`
23+
- When using `prefix`, the `many` method returns values with `prefix`
2324

2425
[#147]:https://github.com/roadrunner-php/laravel-bridge/issues/147
2526

src/Cache/RoadRunnerStore.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public function many(array $keys)
3636
{
3737
$prefixedKeys = \array_map(fn($key) => $this->prefix . $key, $keys);
3838

39-
return $this->storage->getMultiple($prefixedKeys);
39+
return \array_combine($keys, \iterator_to_array($this->storage->getMultiple($prefixedKeys)));
4040
}
4141

4242
public function put($key, $value, $seconds)

0 commit comments

Comments
 (0)