REDROOM
PHP 8.3.31
Path:
Logout
Edit File
Size: 1.88 KB
Close
/home/getspomw/royalsquad.us/vendor/laravel/framework/src/Illuminate/Redis/Connections/PhpRedisClusterConnection.php
Text
Base64
<?php namespace Illuminate\Redis\Connections; use InvalidArgumentException; class PhpRedisClusterConnection extends PhpRedisConnection { /** * The RedisCluster client. * * @var \RedisCluster */ protected $client; /** * The default node to use from the cluster. * * @var string|array */ protected $defaultNode; /** * Scan all keys based on the given options. * * @param mixed $cursor * @param array $options * @return mixed * * @throws \InvalidArgumentException */ #[\Override] public function scan($cursor, $options = []) { $result = $this->client->scan($cursor, $options['node'] ?? $this->defaultNode(), $options['match'] ?? '*', $options['count'] ?? 10 ); if ($result === false) { $result = []; } return $cursor === 0 && empty($result) ? false : [$cursor, $result]; } /** * Flush the selected Redis database on all master nodes. * * @return void */ public function flushdb() { $arguments = func_get_args(); $async = strtoupper((string) ($arguments[0] ?? null)) === 'ASYNC'; foreach ($this->client->_masters() as $master) { $async ? $this->command('rawCommand', [$master, 'flushdb', 'async']) : $this->command('flushdb', [$master]); } } /** * Return default node to use for cluster. * * @return string|array * * @throws \InvalidArgumentException */ private function defaultNode() { if (! isset($this->defaultNode)) { $this->defaultNode = $this->client->_masters()[0] ?? throw new InvalidArgumentException('Unable to determine default node. No master nodes found in the cluster.'); } return $this->defaultNode; } }
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 6
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
Connection.php
5.08 KB
lrw-rw-rw-
2025-09-17 06:52:57
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
PacksPhpRedisValues.php
6.35 KB
lrw-rw-rw-
2025-09-17 06:52:57
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
PhpRedisClusterConnection.php
1.88 KB
lrw-rw-rw-
2025-09-17 06:52:57
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
PhpRedisConnection.php
14.03 KB
lrw-rw-rw-
2025-09-17 06:52:57
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
PredisClusterConnection.php
600 B
lrw-rw-rw-
2025-09-17 06:52:57
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
PredisConnection.php
1.70 KB
lrw-rw-rw-
2025-09-17 06:52:57
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).