The scope of a NamedCurrentThreadCache is just the current request. If the current thread completes, all objects cached in it will be removed.
123124125126127128129130131132
if (dcp != null) { modelCache = dcp.getCache(clazz.getName()); } } else if (useRequestCache) { modelCache = new NamedCurrentThreadCache(clazz.getName()); } return modelCache; }