Leaseweb / LswMemcacheBundle

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

Add memcache class as parameter #71

Open binxiaoff opened 8 years ago

binxiaoff commented 8 years ago

Hello,

First of all, thank you for building a very nice cache bundle.

I wouldd like to load my own class extended from Lsw\MemcacheBundle\Cache\AntiDogPileMemcache in stead of this class.

Is there any way to new the definition with a parameter like memcache.cache.class to use my own class ? $memcache = new Definition('Lsw\MemcacheBundle\Cache\AntiDogPileMemcache');

Thank you