最终我可以使用 redisson 配置 sessionCache-1.0 功能。
以下是 ElastiCache Redis(已禁用集群模式)的配置标志。
服务器.xml
・・・
<!-- JCache Library -->
<library id="jCacheVendorLib">
<fileset dir="${shared.resource.dir}/redisson" includes="*.jar"/>
</library>
<!-- Session Replication -->
<httpSessionCache libraryRef="jCacheVendorLib" uri="file:${shared.resource.dir}/redisson/redisson-jcache.yaml"/>
・・・
redisson-jcache.yaml
---
replicatedServersConfig:
idleConnectionTimeout: 10000
connectTimeout: 10000
timeout: 3000
retryAttempts: 3
retryInterval: 1500
failedSlaveReconnectionInterval: 3000
failedSlaveCheckInterval: 60000
password: null
subscriptionsPerConnection: 5
clientName: xxxxxxx
loadBalancer: !<org.redisson.connection.balancer.RoundRobinLoadBalancer> {}
subscriptionConnectionMinimumIdleSize: 1
subscriptionConnectionPoolSize: 50
slaveConnectionMinimumIdleSize: 24
slaveConnectionPoolSize: 64
masterConnectionMinimumIdleSize: 24
masterConnectionPoolSize: 64
readMode: "MASTER_SLAVE"
subscriptionMode: "MASTER"
nodeAddresses:
- "redis://xxxxxxxxxxxxxx01.cache.amazonaws.com:6379"
- "redis://xxxxxxxxxxxxxx02.cache.amazonaws.com:6379"
scanInterval: 1000
threads: 16
nettyThreads: 32
codec: !<org.redisson.codec.MarshallingCodec> {}
transportMode: "NIO"