Annotation Interface CacheNamespace


@Documented @Retention(RUNTIME) @Target(TYPE) public @interface CacheNamespace
The annotation that specify to use cache on namespace(e.g. mapper interface).

How to use:

 @CacheNamespace(implementation = CustomCache.class, properties = {
   @Property(name = "host", value = "${mybatis.cache.host}"),
   @Property(name = "port", value = "${mybatis.cache.port}"),
   @Property(name = "name", value = "usersCache")
 })
 public interface UserMapper {
   // ...
 }
 
Author:
Clinton Begin, Kazuki Shimizu