50 lines
968 B
Markdown
50 lines
968 B
Markdown
---
|
|
title: danog\MadelineProto\Db\Driver\Redis: Redis driver wrapper.
|
|
description:
|
|
|
|
---
|
|
# `danog\MadelineProto\Db\Driver\Redis`
|
|
[Back to index](../../../../index.md)
|
|
|
|
> Author: Daniil Gentili <daniil@daniil.it>
|
|
|
|
|
|
Redis driver wrapper.
|
|
|
|
|
|
|
|
|
|
## Method list:
|
|
* `getConnection(string $host, int $port, string $user, string $password, string $db, int $maxConnections, int $idleTimeout): \Generator`
|
|
|
|
## Methods:
|
|
### `getConnection(string $host, int $port, string $user, string $password, string $db, int $maxConnections, int $idleTimeout): \Generator`
|
|
|
|
|
|
|
|
|
|
Parameters:
|
|
* `$host`: `string`
|
|
* `$port`: `int`
|
|
* `$user`: `string`
|
|
* `$password`: `string`
|
|
* `$db`: `string`
|
|
* `$maxConnections`: `int`
|
|
* `$idleTimeout`: `int`
|
|
|
|
|
|
Fully typed return value:
|
|
```
|
|
\Generator<int, \Amp\Promise<void>, mixed, \Amp\Redis\Redis>
|
|
```
|
|
#### See also:
|
|
* `\Amp\Promise`
|
|
* `\Amp\Redis\Redis`
|
|
* `\Generator`
|
|
|
|
|
|
|
|
|
|
---
|
|
Generated by [danog/phpdoc](https://phpdoc.daniil.it)
|