mirror of
https://github.com/predis/predis.git
synced 2026-08-19 03:01:47 +00:00
Updated RESP3 docs (#1415)
* Added redis_url specification, updated release-drafter workflow * Updated release-drafter
This commit is contained in:
committed by
GitHub
parent
0e269098a1
commit
da763471cd
@@ -3,7 +3,9 @@ name: Release Drafter
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- v3.x
|
||||
- main
|
||||
- v2.**
|
||||
- v3.**
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref }}
|
||||
|
||||
@@ -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']);
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user