java - Spring @Cacheable 使用 hset
问题描述
我正在使用spring,它是缓存抽象。使用@Cacheable 注解非常方便。但据我所知,这种抽象在 redis 上使用 get/set/del 操作。有什么方法可以使用 hset/hget/hdel?
解决方案
我使用 redisson RMAP 和 spring CacheResolver 完成了这项工作。
推荐阅读
- html - 如何将密码数据提取到excel中
- reactjs - 如何测试反应组件渲染失败时
- powershell - 如何在表格中选择和填写行
- ruby-on-rails - 从控制器中的部分调用数据而不触发多个渲染/重定向
- java - 通过 JUnit 中的自动装配创建实现 JpaRepo 接口的对象?
- asp.net-core - ASP.net Core 基本模式无法正确显示
- scala - 在Scala中拆分字符串两次并reduceByKey
- python - Django 覆盖保存方法时出错
- testing - SAUCE_CONFIG_PATH 在 testcafe-browser-provider-saucelabs 中对我不起作用
- docker - 如何找出 docker 镜像的基础镜像