}
LinkedList records = new LinkedList();
ICacheElement element;
IElementAttributes attributes;
CacheElementInfo elementInfo;
DateFormat format = DateFormat.getDateTimeInstance( DateFormat.SHORT, DateFormat.SHORT );
long now = System.currentTimeMillis();
for ( int i = 0; i < keys.length; i++ )
{
element = cache.getMemoryCache().getQuiet( (Serializable) keys[i] );
attributes = element.getElementAttributes();
elementInfo = new CacheElementInfo();
elementInfo.key = String.valueOf( keys[i] );
elementInfo.eternal = attributes.getIsEternal();
elementInfo.maxLifeSeconds = attributes.getMaxLifeSeconds();
elementInfo.createTime = format.format( new Date( attributes.getCreateTime() ) );
elementInfo.expiresInSeconds = ( now - attributes.getCreateTime() - ( attributes.getMaxLifeSeconds() * 1000 ) )
/ -1000;
records.add( elementInfo );
}