symfony - How to setup Sylius to use Redis as Cache Backend -


according https://github.com/doctrine/doctrinecachebundle#cache-providers there several parameters necessary use redis instead of file_system cache backend.

in main configuration file of sylius, there 1 area put cache settings:

app/config/parameters.yml

sylius.cache:     type: redis (was file_system) 

where put rest?

  • connection_id - redis connection service id
  • host - redis host
  • port - redis port

thanks!

you can use syntax:

sylius.cache:     type: redis     namespace: sylius     redis:         host: localhost         port: 6379         database: 10 

sylius creates doctrine cache provider configuration.


Comments

Popular posts from this blog

python - No exponential form of the z-axis in matplotlib-3D-plots -

php - Best Light server (Linux + Web server + Database) for Raspberry Pi -

c# - "Newtonsoft.Json.JsonSerializationException unable to find constructor to use for types" error when deserializing class -