Leaseweb / LswMemcacheBundle

Symfony bundle for Memcache Doctrine caching and session storage in the Web Debug Toolbar.
MIT License
202 stars 57 forks source link

Checking host before memcached addServer #62

Closed Arthurhall closed 8 years ago

Arthurhall commented 8 years ago

I did this because my config in symfony2 env dev use one server with host equal to "localhost". But in symfony2 env prod i need 2 servers with 2 differents hosts. So i would like to have in my "paramter.yml" something like :

for dev server

server1.host: localhost server2.host: null

for prod servers

server1.host: 10.0.0.1 server2.host: 10.0.0.2

So i don't need to change the "config_prod.yml" file.

Maybe there's another way to do this, what is your opinion ?

mevdschee commented 8 years ago

Thank you!