【问题标题】:Spring @Cacheable using hsetSpring @Cacheable 使用 hset
【发布时间】:2019-12-02 23:10:42
【问题描述】:

我正在使用 spring,它是缓存抽象。使用@Cacheable 注解非常方便。 但据我所知,这种抽象在 redis 上使用 get/set/del 操作。 有没有办法使用hset/hget/hdel?

【问题讨论】:

    标签: java spring caching redis


    【解决方案1】:

    我使用 redisson RMAP 和 spring CacheResolver 完成了这项工作。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2019-03-23
      • 2015-11-26
      • 2018-02-02
      • 1970-01-01
      • 2012-12-25
      • 2015-04-15
      • 2019-11-19
      • 2020-02-23
      相关资源
      最近更新 更多