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

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

Introduction

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

Prototype

void putAll(H key, Map<? extends HK, ? extends HV> m);

Source Link

Document

Set multiple hash fields to multiple values using data provided in m .

Usage

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

public void multiSetHash(String objectKey, Map map) {
    HashOperations opsForHash = redisTemplate.opsForHash();
    opsForHash.putAll(objectKey, map);
}