🤩 File Manager - Mr.X
PHP:
8.3.33
Server:
Apache
OS:
Linux 5.14.0-611.49.1.el9_7.x86_64
User:
websparkit
Navigate
Upload:
Upload
New File
New Folder
Editing:PredisClusterConnection.php
<?php namespace Illuminate\Redis\Connections; use Predis\Command\Redis\FLUSHDB; use Predis\Command\ServerFlushDatabase; class PredisClusterConnection extends PredisConnection { /** * Get the keys that match the given pattern. * * @param string $pattern * @return array */ public function keys(string $pattern) { $keys = []; foreach ($this->client as $node) { $keys[] = $node->keys($pattern); } return array_merge(...$keys); } /** * Flush the selected Redis database on all cluster nodes. * * @return void */ public function flushdb() { $command = class_exists(ServerFlushDatabase::class) ? ServerFlushDatabase::class : FLUSHDB::class; foreach ($this->client as $node) { $node->executeCommand(tap(new $command)->setArguments(func_get_args())); } } /** * Determine if the connection is a cluster connection. * * @return bool */ #[\Override] public function isCluster() { return true; } }
Save Changes
Cancel
Create New File
Create New Folder