【发布时间】:2019-09-17 07:33:46
【问题描述】:
我有一个带有create,list 和update 方法的服务类来修改实体
我在list方法中设置了redis缓存,缓存key是list_cache_1,list_cache_2,...
我的问题是,如何删除create 或update 方法中的所有相关缓存,例如
this.connection.queryResultCache.remove([`list_cache:*`]);
【问题讨论】:
标签: nestjs typeorm redis-cache