@@ -267,16 +267,16 @@ public function testRedisCacheTagsCanBeFlushed()
267267 $ store ->shouldReceive ('connection ' )->andReturn ($ conn = m::mock (stdClass::class));
268268
269269 // Forever tag keys
270- $ conn ->shouldReceive ('sscan ' )->once ()->with ('prefix:foo:forever_ref ' , ' 0 ' , [ ' MATCH ' => ' * ' , ' COUNT ' => 1000 ] )->andReturn (['0 ' , [ ' key1 ' , 'key2 ' ] ]);
271- $ conn ->shouldReceive ('sscan ' )->once ()->with ('prefix:bar:forever_ref ' , ' 0 ' , [ ' MATCH ' => ' * ' , ' COUNT ' => 1000 ] )->andReturn (['0 ' , [ ' key3 '] ]);
270+ $ conn ->shouldReceive ('smembers ' )->once ()->with ('prefix:foo:forever_ref ' )->andReturn (['key1 ' , 'key2 ' ]);
271+ $ conn ->shouldReceive ('smembers ' )->once ()->with ('prefix:bar:forever_ref ' )->andReturn (['key3 ' ]);
272272 $ conn ->shouldReceive ('del ' )->once ()->with ('key1 ' , 'key2 ' );
273273 $ conn ->shouldReceive ('del ' )->once ()->with ('key3 ' );
274274 $ conn ->shouldReceive ('del ' )->once ()->with ('prefix:foo:forever_ref ' );
275275 $ conn ->shouldReceive ('del ' )->once ()->with ('prefix:bar:forever_ref ' );
276276
277277 // Standard tag keys
278- $ conn ->shouldReceive ('sscan ' )->once ()->with ('prefix:foo:standard_ref ' , ' 0 ' , [ ' MATCH ' => ' * ' , ' COUNT ' => 1000 ] )->andReturn (['0 ' , [ ' key4 ' , 'key5 ' ] ]);
279- $ conn ->shouldReceive ('sscan ' )->once ()->with ('prefix:bar:standard_ref ' , ' 0 ' , [ ' MATCH ' => ' * ' , ' COUNT ' => 1000 ] )->andReturn (['0 ' , [ ' key6 '] ]);
278+ $ conn ->shouldReceive ('smembers ' )->once ()->with ('prefix:foo:standard_ref ' )->andReturn (['key4 ' , 'key5 ' ]);
279+ $ conn ->shouldReceive ('smembers ' )->once ()->with ('prefix:bar:standard_ref ' )->andReturn (['key6 ' ]);
280280 $ conn ->shouldReceive ('del ' )->once ()->with ('key4 ' , 'key5 ' );
281281 $ conn ->shouldReceive ('del ' )->once ()->with ('key6 ' );
282282 $ conn ->shouldReceive ('del ' )->once ()->with ('prefix:foo:standard_ref ' );
0 commit comments