Example usage for org.springframework.data.redis.core RedisTemplate getConnectionFactory

List of usage examples for org.springframework.data.redis.core RedisTemplate getConnectionFactory

Introduction

In this page you can find the example usage for org.springframework.data.redis.core RedisTemplate getConnectionFactory.

Prototype

@Nullable
public RedisConnectionFactory getConnectionFactory() 

Source Link

Document

Returns the connectionFactory.

Usage

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;
    }
}