我在其中的一个开源项目上看到了如下配置,是什么意思?
dao : {
type : "org.nutz.dao.impl.NutDaoExt",
args : [ {
refer : "dataSource"
} ],
fields : {
executor : {
refer : "cacheExecutor"
}
}
},
cacheExecutor : {
type : "org.nutz.plugins.cache.dao.CachedNutDaoExecutor",
fields : {
cacheProvider : {
refer : "cacheProvider"
},
cachedTableNames : [ "article", "article_category", "acquisition",
"crawler_rule", "system_permission", "permission_category",
"system_role", "system_setting" ],
enableWhenTrans : false, // 事务作用域内不启用缓存,默认也是false
db : "MYSQL"
}
},
cacheProvider : {
type : "org.nutz.plugins.cache.dao.impl.provider.MemoryDaoCacheProvider",
fields : {
cacheSize : 10000000
},
events : {
create : "init"
}
}