Example usage for org.springframework.data.redis.core HashOperations multiGet

List of usage examples for org.springframework.data.redis.core HashOperations multiGet

Introduction

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

Prototype

List<HV> multiGet(H key, Collection<HK> hashKeys);

Source Link

Document

Get values for given hashKeys from hash at key .

Usage

From source file:com.company.project.service.dao.RedisDao.java

public List multiGetHash(String objectKey, Collection<String> keys) {
    HashOperations opsForHash = redisTemplate.opsForHash();
    return opsForHash.multiGet(objectKey, keys);
}