HashOperations类putAll方法(Spring模版)

文档地址 https://docs.spring.io/spring-data/redis/docs/current/api/org/springframework/data/redis/core/HashOperations.html#putAll(H,java.util.Map)

putAll

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

使用 m 中提供的数据将多个哈希字段设置为多个值。
Set multiple hash fields to multiple values using data provided in m.

Parameters:

  • key - must not be null.
  • m - must not be null.

image

posted @ 2025-04-12 14:16  kuki'  阅读(20)  评论(0)    收藏  举报