使用注解来开启缓存

使用@CacheResult和@CacheRemove即可缓存 和清除缓存
Hystrix请求缓存

Hystrix请求缓存
Hystrix请求缓存

使用注解来清除缓存

Hystrix请求缓存
Hystrix请求缓存
Hystrix请求缓存

一般在查询接口上使用CacheResult,在更新接口中 加上@CacheRemove删除缓存。

注意事项:

Hystrix请求缓存

相关文章: