We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
问题:现在通过切面在Mybatis-plus的query方法中添加了租户id,但是方法的形参中是未申明租户id的,此时缓存的key是不携带租户id值的,那么可能a租户和b租户在相同参数时会同用一份缓存数据。
我目前的处理:目前自定义了KeyConverter,可以实现将租户id拼接到key中,避免了公用同一份缓存数据。但依然存在的问题是,如果使用了 @cacherefresh,在重新缓存原始数据时,并不会解析key中的租户id
需求:能否在重新获取原始数据的loader中增加一个周期函数,函数中可以对key进行一定的处理
The text was updated successfully, but these errors were encountered:
无解……
Sorry, something went wrong.
No branches or pull requests
问题:现在通过切面在Mybatis-plus的query方法中添加了租户id,但是方法的形参中是未申明租户id的,此时缓存的key是不携带租户id值的,那么可能a租户和b租户在相同参数时会同用一份缓存数据。
我目前的处理:目前自定义了KeyConverter,可以实现将租户id拼接到key中,避免了公用同一份缓存数据。但依然存在的问题是,如果使用了 @cacherefresh,在重新缓存原始数据时,并不会解析key中的租户id
需求:能否在重新获取原始数据的loader中增加一个周期函数,函数中可以对key进行一定的处理
The text was updated successfully, but these errors were encountered: