标签: apache caching velocity
我的Web应用程序正在使用Velocity,我的资源加载器已启用缓存。是否可以手动访问缓存中的值?我真正需要做的就是在给定时间删除特定条目。
答案 0 :(得分:0)
我认为这应该重置模板缓存:
VelocityEngine velocity = new VelocityEngine(); velocity.getTemplate("tpl.vm").touch();