Example usage for org.springframework.data.redis.support.collections DefaultRedisList DefaultRedisList

List of usage examples for org.springframework.data.redis.support.collections DefaultRedisList DefaultRedisList

Introduction

In this page you can find the example usage for org.springframework.data.redis.support.collections DefaultRedisList DefaultRedisList.

Prototype

public DefaultRedisList(BoundListOperations<String, E> boundOps, int maxSize) 

Source Link

Document

Constructs a new DefaultRedisList instance.

Usage

From source file:net.nikey.redis.UserRepository.java

/**
 * xml/*from w w  w  . j a  va 2s  . c  o  m*/
 * @param template
 */
@Inject
public UserRepository(StringRedisTemplate template) {
    this.template = template;
    valueOps = template.opsForValue();
    //list
    users = new DefaultRedisList<String>(KeyUtils.users(), template);
    //
    userIdCounter = new RedisAtomicLong(KeyUtils.globalUid(), template.getConnectionFactory());
}

From source file:com.greenline.guahao.biz.manager.cache.hrs.DictCacheManager.java

/**
 * ?//from   ww w . j a  v a 2s .c om
 * 
 * @return RedisList<String>
 */
private RedisList<String> dictList(String dictId) {
    return new DefaultRedisList<String>(dictListKey(dictId), template);
}

From source file:com.greenline.guahao.biz.manager.cache.hrs.HospitalCacheManager.java

/**
 * /*  ww  w  .ja  v  a2  s . co  m*/
 * 
 * @param parentId
 * @return
 */
private RedisList<String> hospitallevels() {
    return new DefaultRedisList<String>(HOSPITAL_LEVEL, template);
}

From source file:com.afousan.service.RetwisRepository.java

@Inject
public RetwisRepository(StringRedisTemplate template) {
    this.template = template;
    valueOps = template.opsForValue();/*from   w  w  w.j  a v a 2  s . co m*/

    users = new DefaultRedisList<String>(KeyUtils.users(), template);
    timeline = new DefaultRedisList<String>(KeyUtils.timeline(), template);
    userIdCounter = new RedisAtomicLong(KeyUtils.globalUid(), template.getConnectionFactory());
    postIdCounter = new RedisAtomicLong(KeyUtils.globalPid(), template.getConnectionFactory());
}

From source file:com.greenline.guahao.biz.manager.cache.hrs.ShiftCaseCacheManager.java

/**
 * ?/*from w w  w  . j  av  a  2 s. co m*/
 * 
 * @return
 */
private RedisList<String> shiftQueryList(ShiftQuery query) {
    return new DefaultRedisList<String>(queryKey(query), template);
}

From source file:com.greenline.guahao.biz.manager.cache.hrs.DepartmentCacheManager.java

/**
 * /*ww w .  ja v  a  2 s  .c o  m*/
 * 
 * 
 * @param parentId
 * @return
 */
public RedisList<String> hospitalDepts(String hospitalId) {
    return new DefaultRedisList<String>(hDeptsKey(hospitalId), template);
}

From source file:com.greenline.guahao.biz.manager.cache.hrs.DepartmentCacheManager.java

/**
 * //from   ww  w  . ja  v  a  2  s . c  o m
 * 
 * 
 * @param category
 * @return
 */
public RedisList<String> categoryDepts(String category) {
    return new DefaultRedisList<String>(categoryDeptsKey(category), template);
}

From source file:com.greenline.guahao.biz.manager.cache.hrs.HospitalCacheManager.java

/**
 * ??//from   w ww  .j  av a2 s.  c o  m
 * 
 * @param hospitalId
 * @return
 */
private RedisList<String> clinicTypes(String hospitalId) {
    return new DefaultRedisList<String>(clinicTypesKey(hospitalId), template);
}

From source file:com.greenline.guahao.biz.manager.cache.hrs.DepartmentCacheManager.java

/**
 * //w ww  .  j av  a 2  s.  c  o m
 * 
 * 
 * @param category
 * @return
 */
public RedisList<String> childDepts(String parentId) {
    return new DefaultRedisList<String>(childDeptsKey(parentId), template);
}

From source file:com.afousan.service.RetwisRepository.java

private RedisList<String> timeline(String uid) {
    return new DefaultRedisList<String>(KeyUtils.timeline(uid), template);
}