From f50acdc082c2cd4315593b690b757384bfad6507 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20N=C3=B6gel?= Date: Thu, 10 Dec 2015 14:28:16 +0100 Subject: [PATCH] Add predis dependency; add save_path hint in readme --- README.md | 3 ++- composer.json | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index f3315f0..c84b82a 100644 --- a/README.md +++ b/README.md @@ -5,4 +5,5 @@ To enable redis session in your shopware 5, just follow this easy steps. 1. Create/update your engine/Shopware/Components/DependencyInjection/services_local.xml with `` 2. Overwrite the the session savehandler in your shopware config: `'session' => ['save_handler' => 'redis']` -3. And define a redis config with the key `sessionredis` if you like. Please use the config for a [predis/predis](https://github.com/nrk/predis) client. +3. You also might need to set the `save_path` of your session like this: `'session' => ['save_path' => 'tcp://localhost:6379?weight=1']` +4. And define a redis config with the key `sessionredis` if you like. Please use the config for a [predis/predis](https://github.com/nrk/predis) client. diff --git a/composer.json b/composer.json index 70c3353..c35dce1 100644 --- a/composer.json +++ b/composer.json @@ -16,7 +16,8 @@ } ], "require": { - "php": ">=5.4" + "php": ">=5.4", + "predis/predis": "1.0.*" }, "require-dev": { "phpunit/phpunit": "~4.4",