Commit 341d077a authored by shenjiaqing's avatar shenjiaqing

提交代码

parent e3693194
......@@ -38,7 +38,7 @@ allprojects {
}
group = "cn.com.duiba.boot"
version = "0.0.22"
version = "0.0.30"
}
subprojects {
......
package cn.com.duiba.spring.boot.starter.dsp.util;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
@Configuration
public class RedisBloomConfiguration {
@Bean
@ConditionalOnProperty(value = "redis.bloom.enabled", havingValue = "true")
public RedisBloomHandler getBean() {
return new RedisBloomHandler();
}
}
package cn.com.duiba.spring.boot.starter.dsp.util;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.data.redis.serializer.RedisSerializer;
import org.springframework.stereotype.Component;
......@@ -14,7 +17,6 @@ import java.util.concurrent.TimeUnit;
* @author wangwei
* @since 2021/12/7 11:10 上午
*/
@Component
public class RedisBloomHandler<K, V> {
private static final String RESERVE = "BF.RESERVE";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment