Store Symfony2 session in redis

I want to store the user sessions in redis to make them usable for Symfony2 and node.js.

Symfony2 supports MySQL and PostgreeSQL as Session Storage but I would like to use Redis.

I found this new pull request which implements already a RedisSessionHandler: https://github.com/Baachi/symfony/blob/redis-session-storage/src/Symfony/Component/HttpFoundation/Session/Storage/Handler/RedisSessionHandler.php

I just didn't found anything about if it is safe to use. Has somebody some infos or is there already some other fix (maybe a bundle) available?


or is there already some other fix (maybe a bundle) available?

Linked RedisSessionHandler requires phpredis extension, that can be configured to act as session handler in php.ini (sessions will be stored with keys $key = 'PHPREDIS_SESSION:'.$hash; )

链接地址: http://www.djcxy.com/p/63142.html

上一篇: 在Symfony2 Twig模板中使用Wordpress Codex

下一篇: 将Symfony2会话存储在redis中