From da763471cd8bf8c77d28ab1eb5d0cfd5d03336c9 Mon Sep 17 00:00:00 2001 From: Vladyslav Vildanov <117659936+vladvildanov@users.noreply.github.com> Date: Thu, 16 Nov 2023 11:44:20 +0200 Subject: [PATCH] Updated RESP3 docs (#1415) * Added redis_url specification, updated release-drafter workflow * Updated release-drafter --- .github/workflows/release-drafter.yml | 4 +++- README.md | 6 ++++++ 2 files changed, 9 insertions(+), 1 deletion(-) 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']); ```