public void put( Object key, Object val, IElementAttributes attr )
throws CacheException
{
if ( key == null )
{
throw new InvalidArgumentException( "Key must not be null" );
}
else if ( val == null )
{
throw new InvalidArgumentException( "Value must not be null" );
}
// Create the element and update. This may throw an IOException which
// should be wrapped by cache access.
try