Example usage for org.springframework.data.redis.core BoundHashOperations values

List of usage examples for org.springframework.data.redis.core BoundHashOperations values

Introduction

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

Prototype

@Nullable
List<HV> values();

Source Link

Document

Get entry set (values) of hash at the bound key.

Usage

From source file:com.chessix.vas.service.RedisStorage.java

@Override
public List<Integer> accountValues(final String clasId) {
    final BoundHashOperations<String, Object, Object> ops = redisTemplate.boundHashOps(clasId);
    final List<Object> values = ops.values();
    return Lists.transform(values, new Function<Object, Integer>() {

        @Override//from  www .jav  a  2  s.  co  m
        public Integer apply(final Object input) {
            return Integer.parseInt((String) input);
        }
    });
}