【问题标题】:is spring-data-redis (opsForHash) get the same as hgetall?spring-data-redis (opsForHash) 是否与 hgetall 相同?
【发布时间】:2017-09-03 08:28:02
【问题描述】:

我正在做互动教程 al http://try.redis.io。在读取 spring 数据 redis 时,我没有遇到过该方法,但遇到了一个 get(没有“all”)

/**
 * Get value for given {@code hashKey} from hash at {@code key}.
 *
 * @param key must not be {@literal null}.
 * @param hashKey must not be {@literal null}.
 * @return
 */
HV get(H key, Object hashKey);

我想知道它们是否相同?如果它们相同,是否没有像 hget 这样的方法(只能获取一个值)?

【问题讨论】:

    标签: hash redis spring-data spring-data-redis


    【解决方案1】:

    我忘记了我提出了这个问题。

    是的,当您在 redis 中查询某个键的数据时,您会带来所有相应的信息

    【讨论】:

      猜你喜欢
      • 2021-09-13
      • 1970-01-01
      • 2018-06-20
      • 2021-03-09
      • 1970-01-01
      • 2017-09-22
      • 2014-07-04
      • 2019-12-30
      • 1970-01-01
      相关资源
      最近更新 更多