首页 > 解决方案 > Spring @Cacheable 使用 hset

问题描述

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

标签: javaspringcachingredis

解决方案


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


推荐阅读