Predis to v2.2.2

This commit is contained in:
the-djmaze 2024-04-02 20:15:23 +02:00
parent f6b440adef
commit 84ffe1e552
259 changed files with 2407 additions and 9937 deletions

View file

@ -3,7 +3,8 @@
/*
* This file is part of the Predis package.
*
* (c) Daniele Alessandri <suppakilla@gmail.com>
* (c) 2009-2020 Daniele Alessandri
* (c) 2021-2023 Till Krüss
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
@ -11,25 +12,23 @@
namespace Predis\Configuration;
use Predis\Command\Processor\ProcessorInterface;
/**
* Interface defining a container for client options.
*
* @property-read mixed aggregate Custom connection aggregator.
* @property-read mixed cluster Aggregate connection for clustering.
* @property-read mixed connections Connection factory.
* @property-read mixed exceptions Toggles exceptions in client for -ERR responses.
* @property-read mixed prefix Key prefixing strategy using the given prefix.
* @property-read mixed profile Server profile.
* @property-read mixed replication Aggregate connection for replication.
*
* @author Daniele Alessandri <suppakilla@gmail.com>
* @property callable $aggregate Custom aggregate connection initializer
* @property callable $cluster Aggregate connection initializer for clustering
* @property \Predis\Connection\FactoryInterface $connections Connection factory for creating new connections
* @property bool $exceptions Toggles exceptions in client for -ERR responses
* @property ProcessorInterface $prefix Key prefixing strategy using the supplied string as prefix
* @property \Predis\Command\FactoryInterface $commands Command factory for creating Redis commands
* @property callable $replication Aggregate connection initializer for replication
*/
interface OptionsInterface
{
/**
* Returns the default value for the given option.
*
* @param string $option Name of the option.
* @param string $option Name of the option
*
* @return mixed|null
*/
@ -38,7 +37,7 @@ interface OptionsInterface
/**
* Checks if the given option has been set by the user upon initialization.
*
* @param string $option Name of the option.
* @param string $option Name of the option
*
* @return bool
*/
@ -47,7 +46,7 @@ interface OptionsInterface
/**
* Checks if the given option has been set and does not evaluate to NULL.
*
* @param string $option Name of the option.
* @param string $option Name of the option
*
* @return bool
*/
@ -56,7 +55,7 @@ interface OptionsInterface
/**
* Returns the value of the given option.
*
* @param string $option Name of the option.
* @param string $option Name of the option
*
* @return mixed|null
*/