Add an invalidate method to the cache class.

This commit is contained in:
Melanie Thielker
2008-08-17 19:10:32 +00:00
parent 0683a07081
commit 5d6a42a22e

View File

@@ -492,5 +492,15 @@ namespace Opensim.Framework
break;
}
}
public void Invalidate(LLUUID uuid)
{
if(!m_Lookup.ContainsKey(uuid))
return;
CacheItemBase item = m_Lookup[uuid];
m_Lookup.Remove(uuid);
m_Index.Remove(item);
}
}
}