List of usage examples for org.springframework.data.redis.core RedisTemplate getConnectionFactory
@Nullable
public RedisConnectionFactory getConnectionFactory()
From source file:com.bazzar.base.dao.redis.ItemRepository.java
@Inject public ItemRepository(RedisTemplate<String, Object> template) { this.template = template; if (template != null) { jobIdCounter = new RedisAtomicLong(KeyUtils.globalUid(), template.getConnectionFactory()); } else {// w ww .j a v a 2 s . co m jobIdCounter = null; } }