Updated RESP3 docs (#1415)

* Added redis_url specification, updated release-drafter workflow

* Updated release-drafter
This commit is contained in:
Vladyslav Vildanov
2023-11-16 11:44:20 +02:00
committed by GitHub
parent 0e269098a1
commit da763471cd
2 changed files with 9 additions and 1 deletions
+3 -1
View File
@@ -3,7 +3,9 @@ name: Release Drafter
on:
push:
branches:
- v3.x
- main
- v2.**
- v3.**
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
+6
View File
@@ -451,9 +451,15 @@ implementation of the standard connection classes available in the `Predis\Conne
### Connection ###
To establish the connection using RESP3 protocol, you need to set parameter `protocol => 3`. Default protocol is still RESP2.
You can pass parameter as configuration option in array or as a query parameter in `redis_url`
```php
// Configuration option
$client = new \Predis\Client(['protocol' => 3]);
// Redis URL
$client = new \Predis\Client('redis://localhost:6379?protocol=3');
// ["proto" => "3"]
$client->executeRaw(['HELLO']);
```