All source code for the project can be found in the repository linked here: github.com/chenhaoxian…

The article directories

annotations Target Corresponding XML tag describe
@CacheNamespace class <cache> Configure caching for a given namespace, such as a class. Properties: Implemetation, eviction, flushInterval, size, readWrite, Blocking, and properties.
@Property N/A <property> Specify attribute values or placeholders (which can be replaced by configuration attributes defined in mybatis-config.xml). Attributes: name, value. (Available on MyBatis3.4.2+)
@CacheNamespaceRef class <cacheRef> Reference the cache of another namespace. Attributes: value, name. If you use this annotation, you should specify a value or name attribute. The value attribute specifies the Java type of the specified namespace (the namespace name becomes the FQCN of the specified Java type), for the name attribute