I am going to use phpfastcache-bundle with symfony3. I have found a documentation how to use it with file driver. But docs are poor on other drivers. How can I setup a redis driver with symfony?
Asked
Active
Viewed 202 times
1 Answers
1
Sorry for being late,
Wiki has a page for all options to drivers. You can find options for redis in Host/Authenticating options.
The config for the drivers on the symfony bundle are exactly the same than the library, except that they are yaml-formatted. So, if you want to setup redis:
php_fast_cache:
drivers:
redis:
type: Redis
parameters: ~
Here parameters are by default but you can change it using options from pointed section in wiki.
In case parameters in wiki are not actual you can find all options in vendor folder - vendor\phpfastcache\phpfastcache\src\phpFastCache\Drivers\Redis\Driver.php#driverConnect
.

FreeLightman
- 2,224
- 2
- 27
- 42

Geolim4
- 454
- 3
- 14
-
Your link routes to homepage. Looks like it does not have wiki. – FreeLightman Oct 02 '17 at 13:00
-
Mybad, I fixed the link, everything that is related to options and/or configuration is centralized in the main repository not the bundle repository. – Geolim4 Oct 11 '17 at 23:48
-
may I rewrite you answer? I would like to accept it but it looks like comment not an answer. – FreeLightman Oct 12 '17 at 13:56