【发布时间】:2015-08-15 01:50:51
【问题描述】:
我无法弄清楚如何使用另一个缓存服务来使用 WsseAuthentication 存储我的 nonce。我不清楚文档。谁能帮我设置我的 nonce 缓存以与 Redis 一起使用?
目前,我知道如何添加新的 nonce 缓存服务 id,如下所示:
firewalls:
#...
wsse_secured:
#...
wsse:
#...
nonce_cache_service_id: cache_nonces
而且我知道如何创建此服务 ID:
services:
cache_nonces:
class: Doctrine\Common\Cache\RedisCache
arguments: ???
但我不知道该给出什么论据。当我使用 RedisCache 时,它需要一个 Redis 对象,我不知道从哪里获取该对象并将其添加到参数中。
【问题讨论】:
标签: symfony doctrine-orm redis redis-cache