glastree_on_gitea

This commit is contained in:
2026-05-26 08:14:29 +02:00
commit 0bed099d05
9556 changed files with 1186307 additions and 0 deletions
@@ -0,0 +1,58 @@
<?php
namespace Illuminate\Redis\Events;
class CommandExecuted
{
/**
* The Redis command that was executed.
*
* @var string
*/
public $command;
/**
* The array of command parameters.
*
* @var array
*/
public $parameters;
/**
* The number of milliseconds it took to execute the command.
*
* @var float
*/
public $time;
/**
* The Redis connection instance.
*
* @var \Illuminate\Redis\Connections\Connection
*/
public $connection;
/**
* The Redis connection name.
*
* @var string
*/
public $connectionName;
/**
* Create a new event instance.
*
* @param string $command
* @param array $parameters
* @param float|null $time
* @param \Illuminate\Redis\Connections\Connection $connection
*/
public function __construct($command, $parameters, $time, $connection)
{
$this->time = $time;
$this->command = $command;
$this->parameters = $parameters;
$this->connection = $connection;
$this->connectionName = $connection->getName();
}
}
@@ -0,0 +1,60 @@
<?php
namespace Illuminate\Redis\Events;
use Throwable;
class CommandFailed
{
/**
* The Redis command that failed.
*
* @var string
*/
public $command;
/**
* The array of command parameters.
*
* @var array
*/
public $parameters;
/**
* The exception that was thrown.
*
* @var \Throwable
*/
public $exception;
/**
* The Redis connection instance.
*
* @var \Illuminate\Redis\Connections\Connection
*/
public $connection;
/**
* The Redis connection name.
*
* @var string
*/
public $connectionName;
/**
* Create a new event instance.
*
* @param string $command
* @param array $parameters
* @param \Throwable $exception
* @param \Illuminate\Redis\Connections\Connection $connection
*/
public function __construct($command, $parameters, Throwable $exception, $connection)
{
$this->command = $command;
$this->parameters = $parameters;
$this->exception = $exception;
$this->connection = $connection;
$this->connectionName = $connection->getName();
}
}