Skip to content

Commit

Permalink
fix:格式
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaomingfor committed Aug 24, 2022
1 parent 3450f74 commit e6076fa
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,12 @@ public class MultilevelCacheAutoConfiguration {
@Bean
@ConditionalOnBean(RedisTemplate.class)
public RedisCaffeineCacheManager cacheManager(CacheConfigProperties cacheConfigProperties,
@Qualifier("stringKeyRedisTemplate")RedisTemplate<Object, Object> stringKeyRedisTemplate) {
@Qualifier("stringKeyRedisTemplate") RedisTemplate<Object, Object> stringKeyRedisTemplate) {
return new RedisCaffeineCacheManager(cacheConfigProperties, stringKeyRedisTemplate);
}

/**
* 可自定义名称为stringKeyRedisTemplate的RedisTemplate覆盖掉默认RedisTemplate。
* 可自定义名称为stringKeyRedisTemplate的RedisTemplate覆盖掉默认RedisTemplate。
*/
@Bean
@ConditionalOnMissingBean(name = "stringKeyRedisTemplate")
Expand All @@ -48,7 +48,8 @@ public RedisTemplate<Object, Object> stringKeyRedisTemplate(RedisConnectionFacto

@Bean
public RedisMessageListenerContainer cacheMessageListenerContainer(CacheConfigProperties cacheConfigProperties,
@Qualifier("stringKeyRedisTemplate") RedisTemplate<Object, Object> stringKeyRedisTemplate, RedisCaffeineCacheManager redisCaffeineCacheManager) {
@Qualifier("stringKeyRedisTemplate") RedisTemplate<Object, Object> stringKeyRedisTemplate,
RedisCaffeineCacheManager redisCaffeineCacheManager) {
RedisMessageListenerContainer redisMessageListenerContainer = new RedisMessageListenerContainer();
redisMessageListenerContainer.setConnectionFactory(stringKeyRedisTemplate.getConnectionFactory());
CacheMessageListener cacheMessageListener = new CacheMessageListener(redisCaffeineCacheManager);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ private void push(CacheMessage message) {
return null;
}, true);

//stringKeyRedisTemplate.convertAndSend(topic, message);
// stringKeyRedisTemplate.convertAndSend(topic, message);
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
@Data
class RedisNullValue implements Serializable {

private static final long serialVersionUID = 1L;
private static final long serialVersionUID = 1L;

public static RedisNullValue REDISNULLVALUE = new RedisNullValue();

public static RedisNullValue REDISNULLVALUE = new RedisNullValue();
}

0 comments on commit e6076fa

Please sign in to comment.