mybatis / redis-cache

MyBatis Redis Cache adapter

Home Page:http://mybatis.github.io/redis-cache

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Is this framework support SQL's join?

shangdiyisi opened this issue · comments

Is this framework support SQL's join?

@shangdiyisi is this question about if mybatis supports sql joins? mybatis supports any jdbc sql statement so yes. Please use the mailing list (http://groups.google.com/group/mybatis-user) and the documentation (http://www.mybatis.org/mybatis-3) if you have other questions.

Actually, what i want to ask if mybatis-redis support sql joins? I know mybatis-redis will evict all cache of a mysql table when i modify the table's data. If only modify one table's data, will mybatis-redis evict the two table's cache which used join statement?

commented

One instance of cache will be created for each namespace.

according the comment from org.apache.ibatis.cache.Cache, I guess redis-cache evict one table`s cache only.
However use cache-ref config to let two table use one cache instance will behave as you expect.