Java Code Examples for org.springframework.data.redis.core.HashOperations#values()

The following examples show how to use org.springframework.data.redis.core.HashOperations#values() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: AbsRedisDao.java    From jeesupport with MIT License 5 votes vote down vote up
@Override
public List< T > findAll( int _idx, Class< T > _cls ) {
    try{
        database( _idx );
        HashOperations< String, ID, T > hash = tpl.opsForHash();
        List< T > list = hash.values( _cls.getSimpleName() );
        return list;
    }catch ( Exception e ){
        log.error( "findAll 发生错误:IDX=[" + _idx + "]" + e.toString(), e );
    }
    return new ArrayList<>();
}
 
Example 2
Source File: RedisSupport.java    From mykit-delay with Apache License 2.0 4 votes vote down vote up
public List<String> hashgetAll(String key) {
    HashOperations<String, String, String> hashOperations = template.opsForHash();
    List<String>                           lst            = hashOperations.values(key);
    return lst;
}
 
Example 3
Source File: RedisCacheUtils.java    From sophia_scaffolding with Apache License 2.0 4 votes vote down vote up
public List<T> getMapValues(String key) {
    HashOperations<String, String, T> hashOperations = redisTemplate.opsForHash();
    return hashOperations.values(key);
}
 
Example 4
Source File: RedisCacheUtils.java    From sophia_scaffolding with Apache License 2.0 4 votes vote down vote up
public List<T> getMapValues(String key) {
    HashOperations<String, String, T> hashOperations = redisTemplate.opsForHash();
    return hashOperations.values(key);
}
 
Example 5
Source File: RedisCacheUtils.java    From sophia_scaffolding with Apache License 2.0 4 votes vote down vote up
public List<T> getMapValues(String key) {
    HashOperations<String, String, T> hashOperations = redisTemplate.opsForHash();
    return hashOperations.values(key);
}
 
Example 6
Source File: RedisSupport.java    From sdmq with Apache License 2.0 4 votes vote down vote up
public List<String> hashgetAll(String key) {
    HashOperations<String, String, String> hashOperations = template.opsForHash();
    List<String>                           lst            = hashOperations.values(key);
    return lst;
}