| 限定符和类型 | 字段和说明 |
|---|---|
static String |
LOCK_CACHE_KEY |
| 构造器和说明 |
|---|
RedisSyncCache() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
clear(String region) |
void |
message(String channel,
int noticeVersion) |
void |
onMessage(org.springframework.data.redis.connection.Message message,
byte[] pattern)
订阅
|
void |
sync(SyncKeys syncKeys,
OpType opType) |
<T> T |
sync(SyncKeys syncKeys,
Supplier<T> supplier,
OpType opType)
二级缓存同步执行
|
public void onMessage(org.springframework.data.redis.connection.Message message,
byte[] pattern)
onMessage 在接口中 org.springframework.data.redis.connection.MessageListenermessage - 消息pattern - 与通道匹配的模式(如果指定)-可以为空。public void message(String channel, int noticeVersion)
public <T> T sync(SyncKeys syncKeys, Supplier<T> supplier, OpType opType)
SyncCacheCopyright © 2022. All rights reserved.