CacheConfig.java 367 Bytes
Newer Older
张辰's avatar
张辰 committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14
package com.tanpu.community.config;

import com.tanpu.community.cache.RedisCache;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class CacheConfig {

    @Bean
    public RedisCache redisCache() {
        return new RedisCache.Builder().cacheName("community2").build();
    }
}