首页 > 解决方案 > Wilfly 将会话状态移动到 Redis

问题描述

我正在尝试将会话状态移动到我的 wildfly 应用程序服务器上的 redis。当我用谷歌搜索它时,我遇到了https://github.com/infinispan/infinispan-cachestore-redis项目。

在 github 链接中有这样的配置:

<cache-container>
    <local-cache>
        <persistence passivation="false">
            <redis-store xmlns="urn:infinispan:config:store:redis:8.0"
                topology="server" socket-timeout="10000" connection-timeout="10000">
                <redis-server host="server1" port="6379" />
                <connection-pool min-idle="6" max-idle="10" max-total="20"
                    min-evictable-idle-time="30000" time-between-eviction-runs="30000" />
            </redis-store>
        </persistence>
    </local-cache>
</cache-container>

我将此配置调整到我的 Wildfly 应用程序服务器standalone-full.xmlinfinispan subsytem module. Wildfly 无法以此配置启动并抛出错误'persistence' isn't an allowed element here

我哪里错了?我正在使用wildfly-23.0.2.Final.

标签: redisjbosswildflyinfinispan

解决方案


推荐阅读