* @see CacheModelParser#parseCachingModel(Element)
*/
public CachingModel parseCachingModel(Element element) {
String cacheName = element.getAttribute("cacheName");
CoherenceCachingModel model = new CoherenceCachingModel(cacheName);
String timeToLiveAttr = element.getAttribute("timeToLive");
if (StringUtils.hasText(timeToLiveAttr)) {
try {
long timeToLive = Long.parseLong(timeToLiveAttr);
model.setTimeToLive(timeToLive);
}
catch (NumberFormatException exception) {
// ignore exception
}
}