Package | Description |
---|---|
net.oschina.j2cache.cache.support.redis | |
net.oschina.j2cache.cluster | |
net.oschina.j2cache.lettuce | |
net.oschina.j2cache.redis |
Modifier and Type | Class and Description |
---|---|
class |
SpringRedisPubSubPolicy
使用spring redis实现订阅功能
|
Modifier and Type | Class and Description |
---|---|
class |
JGroupsClusterPolicy
使用 JGroups 组播进行集群内节点通讯
|
class |
NoneClusterPolicy
实现空的集群通知策略
|
class |
RabbitMQClusterPolicy
使用 RabbitMQ 实现集群内节点的数据通知(用于对数据一致性要求特别严格的场景)
|
class |
RocketMQClusterPolicy
使用 RocketMQ 实现集群内节点的数据通知(用于对数据一致性要求特别严格的场景)
|
Modifier and Type | Method and Description |
---|---|
static ClusterPolicy |
ClusterPolicyFactory.init(CacheProviderHolder holder,
String broadcast,
Properties props)
初始化集群消息通知机制
|
Modifier and Type | Class and Description |
---|---|
class |
LettuceCacheProvider
使用 Lettuce 进行 Redis 的操作
配置信息:
lettuce.namespace =
lettuce.storage = generic
lettuce.scheme = redis|rediss|redis-sentinel
lettuce.hosts = 127.0.0.1:6379
lettuce.password =
lettuce.database = 0
lettuce.sentinelMasterId =
|
Modifier and Type | Class and Description |
---|---|
class |
RedisPubSubClusterPolicy
使用 Redis 的订阅和发布进行集群中的节点通知
该策略器使用 j2cache.properties 中的 redis 配置自行保持两个到 redis 的连接用于发布和订阅消息(并在失败时自动重连)
|
Copyright © 2018. All rights reserved.