We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4e40cfd commit cc19412Copy full SHA for cc19412
tests/Integration/Cache/MemoizedStoreTest.php
@@ -121,6 +121,21 @@ public function test_it_uses_correct_keys_for_getMultiple()
121
$this->assertSame($cacheValue, $memoValue);
122
}
123
124
+ public function test_it_uses_correct_keys_for_getMultiple_with_empty_prefix()
125
+ {
126
+ Cache::setPrefix(null);
127
+
128
+ $data = [
129
+ '1' => 'one',
130
+ 0 => 'zero',
131
+ ];
132
+ Cache::putMany($data);
133
134
+ $this->assertSame($data, Cache::memo()->many(array_keys($data)));
135
+ // ensure correct on the second memoized retrieval
136
137
+ }
138
139
public function test_null_values_are_memoized_when_retrieving_multiple_values()
140
{
141
$live = Cache::getMultiple(['name.0', 'name.1']);
0 commit comments