redis - 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.xml
的infinispan subsytem module
. Wildfly 无法以此配置启动并抛出错误'persistence' isn't an allowed element here
我哪里错了?我正在使用wildfly-23.0.2.Final
.
解决方案
推荐阅读
- indexing - DAE 上使用的 lsqcurvefit 函数给出的错误 Index 超过了数组元素的数量 (1)
- angular - 如何从“Http-Native”插件 Ionic(3 或 4)读取“Set-Cookie”标头?
- docker - 开发和生产中的 Vue 子域
- sql-server - min(count(*)) over... 行为?
- parsing - 从他的 LALR(1) 解析表中获取语法
- laravel - Laravel 上传 GIF
- javascript - 正则表达式匹配不在括号内的字符串
- java - @Autowired 注解不起作用,它返回 NullPointerException 错误。我该如何解决?
- django - Django 模板标签和元编程:有没有办法在调用它的上下文之前修改变量的名称?
- python - 在具有功能的列表理解中“继续”