Leaseweb / LswMemcacheBundle

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

Dynamic Prefix Value #103

Open ashish8488 opened 6 years ago

ashish8488 commented 6 years ago

Hello,

I want to set a dynamic prefix to a session key. Currently is available in configuration but it accepts only a static value. What if I want to set prefix with a dynamic values? For example I want to set prefix as "userId_"?

Can you please suggest for this requirement?

Please note that I tried to extend Lsw\MemcacheBundle\Session\Storage\LockingSessionHandler but the $prefix variable is private. Also my extended class was not being included even if I have set the parameter memcache.session_handler.class: < path to my extended class >.

Thank You, Ashish Shah