scan($cursor ?? 0, ['match' => $fullPattern, 'count' => 100]); if (! empty($keys)) { $redis->del($keys); } } while ($cursor); } }