@Configuration
@EnableCaching
public class SpringletRedisConfig
extends org.springframework.cache.annotation.CachingConfigurerSupport
| 构造器和说明 |
|---|
SpringletRedisConfig() |
| 限定符和类型 | 方法和说明 |
|---|---|
org.springframework.cache.CacheManager |
cacheManager(org.springframework.data.redis.connection.RedisConnectionFactory factory,
RedisCacheProperties redisCacheProperties) |
org.springframework.data.redis.core.script.DefaultRedisScript<Long> |
redisNoNewScript() |
org.springframework.data.redis.core.script.DefaultRedisScript<Long> |
redisRateLimiterScript() |
org.springframework.data.redis.core.RedisTemplate<Object,Object> |
redisTemplate(org.springframework.data.redis.connection.RedisConnectionFactory connectionFactory) |
@Bean(value="redisNoNewScript") public org.springframework.data.redis.core.script.DefaultRedisScript<Long> redisNoNewScript()
@Bean(value="redisRateLimiterScript") public org.springframework.data.redis.core.script.DefaultRedisScript<Long> redisRateLimiterScript()
@Bean public org.springframework.data.redis.core.RedisTemplate<Object,Object> redisTemplate(org.springframework.data.redis.connection.RedisConnectionFactory connectionFactory)
connectionFactory - @Bean
public org.springframework.cache.CacheManager cacheManager(org.springframework.data.redis.connection.RedisConnectionFactory factory,
RedisCacheProperties redisCacheProperties)
Copyright © 2022. All rights reserved.