b3nl / swredis
Shopware 的 Redis 驱动
1.0.1
2015-03-25 18:28 UTC
Requires
- php: >=5.4
Requires (Dev)
- phpunit/phpunit: ~4.0
This package is auto-updated.
Last update: 2024-09-16 06:26:21 UTC
README
Shopware 的 Redis 实现。
要在您的 Shopware 5 中启用 Redis 会话,请按照以下简单步骤操作。
- 使用以下代码创建/更新您的 engine/Shopware/Components/DependencyInjection/services_local.xml:
<service id="session_factory" class="b3nl\SWRedis\DI\Bridge\Session" />
- 覆盖您的 Shopware 配置中的 session savehandler:
'session' => ['save_handler' => 'redis']
- 如果您愿意,可以定义一个具有键
sessionredis
的 Redis 配置。请使用此配置为 predis/predis 客户端。