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

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

Introduction

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

Prototype

@Nullable
List<V> multiGet(Collection<K> keys);

Source Link

Document

Get multiple keys .

Usage

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

public List multiGet(Collection<String> keys) {
    ValueOperations opsForValue = redisTemplate.opsForValue();
    return opsForValue.multiGet(keys);
}