mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-28 03:29:20 +03:00
Predis to v2.2.2
This commit is contained in:
parent
f6b440adef
commit
84ffe1e552
259 changed files with 2407 additions and 9937 deletions
|
|
@ -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.
|
||||
|
|
@ -18,20 +19,22 @@ namespace Predis\Connection;
|
|||
* each connection backend class (please refer to their specific documentation),
|
||||
* but the most common parameters used through the library are:
|
||||
*
|
||||
* @property-read string scheme Connection scheme, such as 'tcp' or 'unix'.
|
||||
* @property-read string host IP address or hostname of Redis.
|
||||
* @property-read int port TCP port on which Redis is listening to.
|
||||
* @property-read string path Path of a UNIX domain socket file.
|
||||
* @property-read string alias Alias for the connection.
|
||||
* @property-read float timeout Timeout for the connect() operation.
|
||||
* @property-read float read_write_timeout Timeout for read() and write() operations.
|
||||
* @property-read bool async_connect Performs the connect() operation asynchronously.
|
||||
* @property-read bool tcp_nodelay Toggles the Nagle's algorithm for coalescing.
|
||||
* @property-read bool persistent Leaves the connection open after a GC collection.
|
||||
* @property-read string password Password to access Redis (see the AUTH command).
|
||||
* @property-read string database Database index (see the SELECT command).
|
||||
*
|
||||
* @author Daniele Alessandri <suppakilla@gmail.com>
|
||||
* @property string $scheme Connection scheme, such as 'tcp' or 'unix'.
|
||||
* @property string $host IP address or hostname of Redis.
|
||||
* @property int $port TCP port on which Redis is listening to.
|
||||
* @property string $path Path of a UNIX domain socket file.
|
||||
* @property string $alias Alias for the connection.
|
||||
* @property float $timeout Timeout for the connect() operation.
|
||||
* @property float $read_write_timeout Timeout for read() and write() operations.
|
||||
* @property bool $persistent Leaves the connection open after a GC collection.
|
||||
* @property string $password Password to access Redis (see the AUTH command).
|
||||
* @property string $database Database index (see the SELECT command).
|
||||
* @property bool $async_connect Performs the connect() operation asynchronously.
|
||||
* @property bool $tcp_nodelay Toggles the Nagle's algorithm for coalescing.
|
||||
* @property bool $client_info Whether to set LIB-NAME and LIB-VER when connecting.
|
||||
* @property bool $cache (Relay only) Whether to use in-memory caching.
|
||||
* @property string $serializer (Relay only) Serializer used for data serialization.
|
||||
* @property string $compression (Relay only) Algorithm used for data compression.
|
||||
*/
|
||||
interface ParametersInterface
|
||||
{
|
||||
|
|
@ -53,6 +56,13 @@ interface ParametersInterface
|
|||
*/
|
||||
public function __get($parameter);
|
||||
|
||||
/**
|
||||
* Returns basic connection parameters as a valid URI string.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function __toString();
|
||||
|
||||
/**
|
||||
* Returns an array representation of the connection parameters.
|
||||
*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue