diff --git a/.github/workflows/release-drafter.yml b/.github/workflows/release-drafter.yml index e657c53a..cd371c0c 100644 --- a/.github/workflows/release-drafter.yml +++ b/.github/workflows/release-drafter.yml @@ -3,7 +3,9 @@ name: Release Drafter on: push: branches: - - v3.x + - main + - v2.** + - v3.** concurrency: group: ${{ github.workflow }}-${{ github.ref }} diff --git a/README.md b/README.md index a460f39d..e6d7398c 100644 --- a/README.md +++ b/README.md @@ -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']); ```