org.babyfish.jimmer.spring.cfg.TransactionCacheOperatorFlusherConfig Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jimmer-spring-boot-starter Show documentation
Show all versions of jimmer-spring-boot-starter Show documentation
A revolutionary ORM framework for both java and kotlin
package org.babyfish.jimmer.spring.cfg;
import org.babyfish.jimmer.spring.cache.impl.TransactionCacheOperatorFlusher;
import org.babyfish.jimmer.sql.cache.TransactionCacheOperator;
import org.springframework.boot.autoconfigure.condition.ConditionalOnBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.scheduling.annotation.EnableScheduling;
import java.util.List;
@ConditionalOnBean(TransactionCacheOperator.class)
@EnableScheduling
@Configuration
public class TransactionCacheOperatorFlusherConfig {
@Bean
public TransactionCacheOperatorFlusher transactionCacheOperatorFlusher(
List transactionCacheOperators
) {
return new TransactionCacheOperatorFlusher(transactionCacheOperators);
}
}