无法在mybatis映射器注释中创建hazelcast缓存

问题描述

我已将数据访问对象mybatis映射器设计为从Mysql数据库读取只读数据。

 @Mapper
    public interface XYZMapper {
    
        @Select("SELECT TYPES FROM abc  WHERE STORE_ID = #{storeId}  and CUSTOMER_ID = #{customerId}")
        public String getDisabledSubscriptions(@Param("storeId") int storeId,@Param("customerId") int customerId);
    
        @Select("SELECT TYPES as messageTypes,NAME as eventName FROM abc  WHERE STORE_ID = #{storeId}")
        public EventSubscription getEventAllSubscriptions(@Param("storeId") int storeId);

http://mybatis.org/hazelcast-cache/

上面的链接提供了使用hazelcast进行缓存的解决方案。当我们将映射器配置为xml文件时使用。我们如何使用注释映射器将上述每个查询作为L2缓存进行缓存

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)