Advanced Redis application advanced class one-stop Redis solution

V: ititit111222333

    /** * Use DictUtil to retrieve data dictionary information from redis cache
    @Bean
    public AreaRepertory areaRepertory(RedisTemplate redisTemplate) {
        return new RedisAreaRepertory(redisTemplate,true);
    }

    /** * You can use ConfigUtil to fetch system configuration information from the Redis cache */
    @Bean
    public ConfigRepertory configRepertory(RedisTemplate redisTemplate) {
        return new RedisConfigRepertory(redisTemplate);
    }
Copy the code